Glad you got it to work.
Type: Posts; User: Norm
Glad you got it to work.
Please copy the full text of the error message and paste it here.
A char is one letter, a String allows for many characters. Which do you need? A String can be a single letter.
A char can never be more than one letter.
You should compile the code and fix the problems before trying to execute it. That error message is from when you try to execute the code. It won't execute with compiler errors!!!
Is this the...
The compiler prints out error messages when it finds errors.
Here is a sample error message from the javac compiler:
TestSorts.java:138: cannot find symbol
symbol : variable var
location:...
Please copy the full text of the error messages and paste it here. There is useful and important info in the messages.
That says the println() method takes ONE String argument. The posted code has several String arguments separated by commas. Try removing the commas and making the arg one String by using the +...
What happens now when you compile and execute the code?
Copy the output and paste it here and explain what is wrong with it.
Can you describe what the method is supposed to do?
What happens now when you compile and execute the code?
Copy the output and paste it here and explain what is wrong with it.