Results 1 to 3 of 3
Thread: problem with array
- 02-09-2012, 02:17 PM #1
problem with array
hi,
I have a task to do at uni. Its a map drawn in applet and basically I have a TextField called "A comment"and when I put something like "restaurant: good food" the program should check if the input contains string ""restaurant" and if it does the comment "good food" goes into an array where all comments are stored.
my code is:It is just a little bit of my code to give you a picture of what im trying to do.Java Code:String comment; String [] commentList=new String[1000]; int count=0; if (comment.contains("church:")) { count++; commentList[count-1]=comment; ...
I am really stuck here and I need a help plase!
Regards Adrian
- 02-09-2012, 02:33 PM #2
Re: problem with array
I'm not really sure what your question is. Where exactly are you stuck? If you want help, you should put together an SSCCE that demonstrates exactly what you have so far.
How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 02-09-2012, 03:15 PM #3
Similar Threads
-
Display Array on another class after extracting from txt file and into array problem
By jonathan920 in forum NetBeansReplies: 0Last Post: 05-12-2011, 07:04 PM -
array problem
By aizen92 in forum New To JavaReplies: 26Last Post: 12-21-2010, 05:42 AM -
array problem
By jabo in forum New To JavaReplies: 2Last Post: 03-31-2010, 09:54 AM -
Array problem
By c3jcarmy in forum New To JavaReplies: 11Last Post: 03-11-2010, 02:45 AM -
array problem
By Albert in forum Advanced JavaReplies: 2Last Post: 07-01-2007, 01:13 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks