wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Having troubles with a complex program, need help with an illegal start of type error. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Having troubles with a complex program, need help with an illegal start of type error." Watch "Having troubles with a complex program, need help with an illegal start of type error." New topic
Author

Having troubles with a complex program, need help with an illegal start of type error.

Nick Harms
Ranch Hand

Joined: Mar 06, 2010
Posts: 44
Well my homework isnt due today, and I have been acing this class and going ahead farther than anyone, for some reason i suck at this program! GRRRR lol
Janeice DelVecchio
Saloon Keeper

Joined: Sep 14, 2009
Posts: 1659
    
  11

Well your original issue is resolved. If you have a new question, I suggest to start a new thread. That way, people won't get frustrated with the :



Don't post long lines in your code tags... it causes weird horizontal scrolling. Just break that really long one up into 2 lines.

Seriously. Get HFJ. Using methods is just the beginning of OO programming and you need to understand the rules a little better.

Oracle/Sun has good tutorials too, uhmmmm...... here:
http://java.sun.com/docs/books/tutorial/

I am going to bed now.... I had a long day
Good luck!
and welcome to JavaRanch!


When you do things right, people won't be sure you've done anything at all.
Nick Harms
Ranch Hand

Joined: Mar 06, 2010
Posts: 44
So you would have a int variable up in your main method and set it like this
int 1, 2, 3, 4, 5?
or
int 1
int 2
int 3
int 4
int 5
is that what you mean so only those certain things are allowed?
If so can you remind me how to write so the user can input an int?
Janeice DelVecchio
Saloon Keeper

Joined: Sep 14, 2009
Posts: 1659
    
  11



Check out the API
http://java.sun.com/javase/6/docs/api/java/util/Scanner.html
Jim Hoglund
Ranch Hand

Joined: Jan 09, 2008
Posts: 525
Thank you Janeice.

Jim ... ...


BEE MBA PMP SCJP-6
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Having troubles with a complex program, need help with an illegal start of type error.
 
Similar Threads
Help code problem please
Suppressing proceeding statements after if statement fails
Having trouble understanding an error code i keep getting. Please help!
Class, Method Help
need help with code