Search:

Type: Posts; User: andreas90

Search: Search took 0.11 seconds.

  1. Replies
    7
    Views
    2,015

    Re: Java program (beginner) help?!

    You are welcome.
    Glad you got it work.
  2. Replies
    7
    Views
    2,015

    Re: Java program (beginner) help?!

    I think the problem is in your the parameters you pass when you call the repeat(int i, char c) method. To be more specific:

    int x = str.charAt(0);

    In the abode code x has the value of the char...
  3. Replies
    7
    Views
    2,015

    Re: Java program (beginner) help?!

    Can you post the repeat(x, y) method?

    if(str == "")

    You shouldn't use the == operator to compare Strings. You should use the String's equals() method.

    if(str.equals(""))
Results 1 to 3 of 3