if you look at your variable, you cannot declare as "volume of box", "volume of cylinder", and "3.14", in all volume of box or volume of cylinder has space on it, declare it without the spaces then...
Type: Posts; User: andaji
if you look at your variable, you cannot declare as "volume of box", "volume of cylinder", and "3.14", in all volume of box or volume of cylinder has space on it, declare it without the spaces then...
You actually closed your main method and class bracket before your for loop, so the computer never understands what is your for loop for, change your bracket and it should take out those errors it's...
What Herah wrote will make your code work fine.. declare all the variables in class before any method rather than declare inside each method, by doing that if you call the variable outside of that...
Can you put your code and error in code tag? It's too hard and confusing to read through all these codes you gave here
I also copied and paste your code into my compiler & it compiled and ran totally fine. So, there is NO error in your code. I guess it's the problem with saving these two files. Remember to save the...
Hello,
Anyone know how can i take a character value from user in Scanner package? I've been trying by
char grades;
grades = console.next().charAt(0);
Why do you need labels in a GUI program?
yes... to show the output into 3 decimal place.. you have to use..
System.out.printf ("%.3f" , Math.PI);
This will convert the output into 3 decimal places. In other output system like...
I think it's the only reason you use the printf() method.
In other methods like print or println it just only print the thing in the computer screen but you can't format the output.
but with the...
Thanks..!
It worked. i did use the Character.toUpperCase(); but i didn't put in right order,
as you shown in ur reply... i = Character.toUpperCase();
i forgot to did that, instead i was just...
Anyone know how to put any char value to upper case? I thought it's Character.toUpperCase();
But it's not working. Please help me out. Thank you!