Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 07-19-2012, 01:38 PM   #1
Daemon Poster
 
disturbed13's Avatar
 
Join Date: Jul 2007
Posts: 1,154
Send a message via Yahoo to disturbed13
Default java issue

im working my way through Teach Yourself Java 6 in 21 days
but im having an issue on day 3

what one earth does all of this mean in NetBeans?
__________________

__________________
If you think you can, you CAN! If you think you cant, your right.
<iframe src="http://www.worldcommunitygrid.org/getDynamicImage.do?memberName=disturbed13&mnOn=tru e&stat=1&imageNum=4&rankOn=false&projectsOn=false& special=false" frameborder="0" name="di" scrolling="no" width="125px" height="176px"></iframe>
disturbed13 is offline   Reply With Quote
Old 07-19-2012, 08:31 PM   #2
Site Team
 
berry120's Avatar
 
Join Date: Jul 2009
Location: England, UK
Posts: 3,425
Default Re: java issue

It means there's errors in your code!

In future, better to paste the entire code rather than just the screenshot, that way people can try and compile and see where the problems are definitively.

However, in your case:

Code:
StringTokenizer st1; st2;
...the first ; should be a comma instead. You're declaring a list of variables of the same type, which is in Java a comma separated list. The semicolon just goes at the end. When you fix this, the errors on st2 should all disappear.

Code:
st1 = new StringTokenizer(quote);
You haven't declared any variable called "quote" here, hence the error. I assume you meant quote1 which you declared on the previous line.

Your last line says "system.out" rather than "System.out" - it must be a capital, remember Java is case sensitive (and class names such as System should always start with capitals.)

If you're still having issues, post all the code here as text and I'll look more closely
__________________

__________________
Save the whales, feed the hungry, free the mallocs.
berry120 is offline   Reply With Quote
Old 07-20-2012, 09:33 AM   #3
Daemon Poster
 
disturbed13's Avatar
 
Join Date: Jul 2007
Posts: 1,154
Send a message via Yahoo to disturbed13
Default Re: java issue

thank you
next time ill look more closely at my code
and the code in the book that i am taking it from
i just got it to work after i fixed those issues

thanks again
__________________
If you think you can, you CAN! If you think you cant, your right.
<iframe src="http://www.worldcommunitygrid.org/getDynamicImage.do?memberName=disturbed13&mnOn=tru e&stat=1&imageNum=4&rankOn=false&projectsOn=false& special=false" frameborder="0" name="di" scrolling="no" width="125px" height="176px"></iframe>
disturbed13 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 06:41 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0