Search:

Type: Posts; User: Aju_21

Search: Search took 0.25 seconds.

  1. Replies
    7
    Views
    1,209

    Re: Begginer Java - Bug in my code?

    oops check this


    for (int i=0; i < sentencelength; i++){
    if (sentence.charAt(i) == ' '){
    if (lettercount >= limit){
    finalcount ++;
    }
    ...
  2. Replies
    7
    Views
    1,209

    Re: Begginer Java - Bug in my code?

    The problem with ur code is it uses " " (space) to increment the finalcount . There is no space after last word, so it doesn;t gets count. Try appending a space to the string after u take as input or...
  3. Replies
    3
    Views
    333

    Re: code not returning sum

    error in this line
    document.writeIn( "<h1>The sum is " + sum + "</h1>");

    it is writeln i.e "L" and not "I"
    writeln means "write line"

    make the change,and it will work perfectly.
  4. Replies
    4
    Views
    420

    Re: Password writing file

    It is because you have written the following case out of switch { }
    case "load":
    load(passwords);

    instead of ending switch i.e. } after save(passwords);
    end } after load(passwords);
    i guess...
Results 1 to 4 of 4