Arrays!

Joined
Aug 29, 2006
Messages
4
Reaction score
0
Hello,

I have the following array.
String[] temp = new String[101];
and the valus stored in it is temp = c1.getContents();.
After printing the array list using the statement 'System.out.println(temp);', i just want to add a code for searching for a perticular value in that array values. i.e. if the list contains value 'pps', the it should print yes, and if no then it should print 'no'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,039
Messages
2,570,376
Members
47,031
Latest member
AndreBucki

Latest Threads

Top