That could be. Some things are harder than others. I have a hard time learning to play music.
Spend more time reading the Tutorials:
The Java™ Tutorials
Trail: Learning the Java Language: Table of...
Type: Posts; User: Norm
That could be. Some things are harder than others. I have a hard time learning to play music.
Spend more time reading the Tutorials:
The Java™ Tutorials
Trail: Learning the Java Language: Table of...
Time for you to look at the Tutorials or your textbook. I'm not going to give you lines of code. You need to look at some programs and see how they are put together.
My example:...
var = 123.45;
System.out.println("some text " + var);
Put the 318.75 into a double variable and use that in the println
Also classnames should begin with a Capital letter
Start simply. Write a program that prints:
The cost of the apples is #xxx
Where xxx is a number in a variable.
When you have that move on to the next part.
Where are your questions? All I see are your assignment requirements.
Take them one at a time. Don't post more than one problem on one thread.
Be sure to show what you have done and ask questions...