i need an explain please !
hello
i'm asked to make a java code for this question but the problem i can't get what it wants me to do :-/
the Question:
Write a program that reads a string and prints the number of occurrences of each alphabetical letter in the string. Your program should call a method to create an array for the counters of the letters, and use another overloaded method that receives a character and updates the corresponding counter and finally call a third method to print the counts.
i just need an explain :rolleyes:
Re: i need an explain please !
Re: i need an explain please !
should i make an array with the all litters ?
or only the characters in the String that user will enter ?
i couldn't do an array with the character in the user's string!
Re: i need an explain please !
Quote:
Originally Posted by
keep smiling
should i make an array with the all litters ?
or only the characters in the String that user will enter ?
i couldn't do an array with the character in the user's string!
I don't know, what happened when you tried each? And why can't you do an array of characters?