" data-bs-original-title="" title="">
Comments: The code is poorly formatted If key is a String, why do this: ` key.toString()` use key directly What does this mean: subtracts 9 to make unicode into values A,B,C...=1,2,3... 'A' - 9 = 56 not 1
Look at the pattern of what goes on each line. How many numbers go on the first line? How many on the second? etc Use some loops: one for each line and one for the contents of a line
> The class won't compile?! Please post the full text of the error messages.
Please post the full text of the error message that shows where the error happens. Look at the source line where the error happens and see what variable has a null value and then backtrack in the code to see why that variable does not have a valid non-null value.
What code have you written so far? Do you have any specific problems or questions to ask about it? Post your code and your questions so we can help you get your code to work.
What have you written so far? Do you have any specific questions about your assignment?
Are you looking for a design/algorithm or do you have one and need help coding it in java?
> (I'm getting a infinite while loop Add some println calls in the loop that prints out the value of numberOfChar to see what the code is reading that makes it loop forever. Have you read the API doc for the Scanner methods to see what they can do? For …
> Im having trouble counting the words Can you explain? How many words does the program read and how many does it count? What is the output from the program.
Replace the list of if statements with a statement that returns the value for the character. Since the values of the chars are contiguous: 'b' = 'a' + 1 and you can do arithmetic with char variables, consider these: 'b' - 'a' = 1 or 'z' - 'a' = 25
> to show my fellow staff members that I am making progress Where is your attempt at writing the code in Java? Here are a couple of links: http://docs.oracle.com/javase/tutorial/java/TOC.html http://docs.oracle.com/javase/tutorial/reallybigindex.html
> it gives out a horrible box of code Please copy and paste the full text of any error messages generated by the program. I assume that is the "horrible box" that you are seeing. On windows To copy the contents of the command prompt window: Click on Icon in …
The End.