Search:

Type: Posts; User: derekxec

Search: Search took 0.29 seconds.

  1. [SOLVED] Re: Having problems understanding String Methods

    nope you dont need the quotes

    say you have 2 variables name1 and name2
    example: s = s.replaceAll(name1, name2);
  2. [SOLVED] Re: Having problems understanding String Methods

    thats correct i printed both just to show that it changed the name..ah yes the s = s.replaceAll("Jenn", "Kim");
    works outside the println you are correct :D

    also if you are getting the names from...
  3. [SOLVED] Re: Having problems understanding String Methods

    i couldn't figure out how to get it to work like you said but you could do it like this...I'm also not sure how you are getting the name (from a console input maybe?)



    String s;
    s =...
Results 1 to 3 of 3