Discussion topic: Contributed Answer/Explanation to Q. 12
To go to the homepage of this topic,
click here.
Home: lokeshc | Original Message | Reply | Subject: Contributed Answer/Explanation to Q. 32 | ANSWER
class name
Posted at: Sun Feb 13 02:02:39 2011 (GMT) |
Page 1 of 1 | From: lokeshc | Reply 1 of 2 | Reply | | Subject: Contributed Answer/Explanation to Q. 32 | ANSWER
class name
{
public void search(String a)
Posted at: Sun Feb 13 02:05:41 2011 (GMT)
|
From: lokeshc | Reply 2 of 2 | Reply | | Subject: Contributed Answer/Explanation to Q. 32 | ANSWER
class name
{
public void search(String a)
{
int e;
String c[] = {"Ab
","Cd","Ef","Gh","Ij"};
String b[] =
{"12","45","90","87","76"}
;
for( e=0;e<5;e++)
{
if(a.equals(c[e]))
{
System.out.println("Search Successful");
System.out.println(c[e]+" "+b[e]);
else
System.out.println("Seach unsuccessful.Name not enlisted.");
}
}
}
Posted at: Sun Feb 13 02:11:17 2011 (GMT)
|
Page 1 of 1
|
|
To post to this forum, you must be signed in as a Syvum member.
Please sign in / register as a member.