I have just embarked on a Java programming course and have been given a task to work out the volume of a cylinder in cubic inches with a given radius and height. and then to convert it from cubic inches to to cubic Cm's which i have done fine.
My problem is it wont complie with an error on one of the
System.out.print
lines that i have in the program
i have checked that i have the syntax correct and it still wont compile.
Would some one be able to give me some advice
I know this is going to sound like a totaly dumb request but hey we all have to start somewhere dont we
grifflyn
0
Newbie Poster
Recommended Answers
Jump to PostPost the error that you're getting. Often, a syntax error may not be on the line given by the message. It could be a few lines up and the effect of the error isn't seen by the parser until that line.
Jump to PostCheck for missing semi colens ';'
That would be my first attempt at finding the problem.
All 7 Replies
Narue
5,707
Bad Cop
Team Colleague
jerbo
0
Junior Poster in Training
nanosani
20
Technize.net addict
Team Colleague
alc6379
120
Cookie... That's it
Team Colleague
grifflyn
0
Newbie Poster
grifflyn
0
Newbie Poster
server_crash
64
Postaholic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.