Page 1 of 2 12 LastLast
Results 1 to 20 of 27
  1. #1
    pradeep kumar is offline Banned
    Join Date
    Sep 2013
    Location
    Gurgaon, Haryana
    Posts
    2
    Rep Power
    0

    Default Banned for creating multiple accounts

    String str = "hello brave new world";
    tStr.reverseWordByWord(str)

    public String reverseWordByWord(String str){
    int strLeng = str.length()-1;
    String reverse = "", temp = "";

    for(int i = 0; i <= strLeng; i++){
    temp += str.charAt(i);
    if((str.charAt(i) == ' ') || (i == strLeng)){
    for(int j = temp.length()-1; j >= 0; j--){
    reverse += temp.charAt(j);
    if((j == 0) && (i != strLeng))
    reverse += " ";
    }
    temp = "";
    }
    }

    return reverse;
    }
    is any another technique to solve it ??
    Last edited by DarrylBurke; 09-02-2013 at 03:22 PM.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default Re: Programe :- Reverce The Word From A String

    Removed from a staff-only section.

    Please go through the Guide For New Members and BB Code List - Java Programming Forum - Learn Java Programming and edit your post accordingly.

    Did you have a question?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    pradeep kumar is offline Banned
    Join Date
    Sep 2013
    Location
    Gurgaon, Haryana
    Posts
    2
    Rep Power
    0

    Default Re: Programe :- Reverce The Word From A String

    please write complete program..

  4. #4
    superhaNds is offline Senior Member
    Join Date
    Apr 2013
    Location
    Sweden
    Posts
    232
    Rep Power
    1

    Default Re: Programe :- Reverce The Word From A String

    Quote Originally Posted by pradeep kumar View Post
    please write complete program..
    Not gonna happen in this forum at least

  5. #5
    gimbal2 is online now Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,050
    Rep Power
    4

    Default Re: Programe :- Reverce The Word From A String

    Quote Originally Posted by pradeep kumar View Post
    please write complete program..
    And what are you going to do? Sit back?
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  6. #6
    Vikash dagur is offline Banned
    Join Date
    Sep 2013
    Posts
    6
    Rep Power
    0

    Default print a string

    how i can run this program on java?

    String str = "hello brave new world";
    tStr.reverseWordByWord(str)

    public String reverseWordByWord(String str){
    int strLeng = str.length()-1;
    String reverse = "", temp = "";

    for(int i = 0; i <= strLeng; i++){
    temp += str.charAt(i);
    if((str.charAt(i) == ' ') || (i == strLeng)){
    for(int j = temp.length()-1; j >= 0; j--){
    reverse += temp.charAt(j);
    if((j == 0) && (i != strLeng))
    reverse += " ";
    }
    temp = "";
    }
    }

    return reverse;
    }

  7. #7
    gimbal2 is online now Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,050
    Rep Power
    4

    Default Re: print a string

    1) compile code using 'javac'
    2) run code using 'java'

    The actual how can be found in the java tutorials, or more recommended: a decent book.

    The Java™ Tutorials
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  8. #8
    surjeet singh is offline Banned
    Join Date
    Sep 2013
    Posts
    2
    Rep Power
    0

    Default networking

    please help about to data structure

  9. #9
    Vikash dagur is offline Banned
    Join Date
    Sep 2013
    Posts
    6
    Rep Power
    0

    Default Re: print a string

    but this runing commend nd i can run on the commend form then he show the error how i can found the error and solve this problem

  10. #10
    nidhi patel is offline Banned
    Join Date
    Sep 2013
    Location
    FARIDABAAD
    Posts
    2
    Rep Power
    0

    Default Re: Programe :- Reverce The Word From A String

    Quote Originally Posted by pradeep kumar View Post
    is any another technique to solve it ??
    pradeep if you can complete it plz.i wanna understand your concept in this program used

  11. #11
    nidhi patel is offline Banned
    Join Date
    Sep 2013
    Location
    FARIDABAAD
    Posts
    2
    Rep Power
    0

    Question question

    HELLO everyone
    this is nidhi patel,recentaly join this forum.
    i wanna ask a question to if any one can help me plz reply..
    java is a pure object oriented language or not?????

  12. #12
    gimbal2 is online now Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,050
    Rep Power
    4

    Default Re: question

    It has primitives (int, double, boolean, etc.) which are by definition not objects, so it is not a 'pure' object oriented language.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  13. #13
    Vikash dagur is offline Banned
    Join Date
    Sep 2013
    Posts
    6
    Rep Power
    0

    Default print a string

    how i can print a string in advance java . nd what is the advance java in your langvage.

  14. #14
    Vikash dagur is offline Banned
    Join Date
    Sep 2013
    Posts
    6
    Rep Power
    0

    Default networking

    how i can use the java algorithm in java . what is the work of java algorithm.

  15. #15
    Vikash dagur is offline Banned
    Join Date
    Sep 2013
    Posts
    6
    Rep Power
    0

    Default Re: question

    the java is a pure object oriented lang.

  16. #16
    Vikash dagur is offline Banned
    Join Date
    Sep 2013
    Posts
    6
    Rep Power
    0

    Default networking

    what is networking .how i can explain the enternet.
    what is use of networking.

  17. #17
    gimbal2 is online now Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,050
    Rep Power
    4

    Default Re: question

    No, it is not for the reason I explained.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  18. #18
    vivek.pandey is offline Banned
    Join Date
    Sep 2013
    Posts
    1
    Rep Power
    0

    Thumbs up inefficiency of java

    its 1st as given followsSlow

    Internet as a whole
    Potential huge show-stopper problem.

    :
    Minimal incentive for people to conserve.

    Potential demand is unbounded, potential supply is bounded.

    Solutions:

    Write applications instead of applets (but then you lose some advantages)

    Cache your applets (only partial solution).


    Be a good Internet citizen: Minimize your use of detailed images and other bandwidth-hungry objects


    Java compiler
    Not yet well optimized.

    Takes more time to compile a large program than a good C++ compiler.
    Java programs
    Byte-code interpretation is slow

    - 20-50 times slower than C++

    Other factors:

    Much run-time error checking done

    Memory management is somewhat expensive

    Partial solution: Get a real (non bytecode) compiler - coming later this year

    Asymmetrix SuperCede - probably fastest

    Borland Latte

    Symantec Café

  19. #19
    surjeet singh is offline Banned
    Join Date
    Sep 2013
    Posts
    2
    Rep Power
    0

    Default java program

    class A
    {
    public static void main(string org[])
    {
    system.out.println("hello word");

    system.out.print("hello");
    }
    }

  20. #20
    gimbal2 is online now Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,050
    Rep Power
    4

    Default Re: java program

    Java Code:
    System.out.println("Hi!");
    communicating through code, what an awesome idea.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Page 1 of 2 12 LastLast

Similar Threads

  1. Please help, I'm new to Networking
    By etiger in forum Networking
    Replies: 2
    Last Post: 07-17-2011, 08:42 PM
  2. Help with Networking
    By mr_anderson in forum Networking
    Replies: 1
    Last Post: 07-11-2010, 09:18 PM
  3. New to Networking
    By Psyclone in forum Networking
    Replies: 1
    Last Post: 03-06-2010, 01:49 AM
  4. Networking
    By Psyclone in forum AWT / Swing
    Replies: 1
    Last Post: 02-26-2010, 04:41 AM
  5. Networking Help
    By rp181 in forum Networking
    Replies: 4
    Last Post: 09-20-2009, 05:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •