Search:

Type: Posts; User: Voodoo

Search: Search took 0.11 seconds.

  1. Re: Where the hell is the error coming from. . . ?

    and the 3rd poison bottle you have is:



    Scanner input = new Scanner(System.in);

    System.out.println("Enter a sentence to count the occurence of each letter");
    ...
  2. Re: Where the hell is the error coming from. . . ?

    Einsteinium, your 2nd poison vial is:



    for(int i=0;i<sentence.length();i++){
    if(Character.isLetter(sentence.charAt(i)))
    count[sentence.charAt(i) - 'a']++;...
  3. Re: Where the hell is the error coming from. . . ?

    man, Einsteinium, you commit a basic error and wonder why you're killed;)) the poison is


    int[] count = letterOccurence(words.toLowerCase());
    for(int i=0;i<words.length();i++){
    ..
    }

    to detox
Results 1 to 3 of 3