Syvum Home Page

Home > Discussions > For all activities

Discussion topic: Contributed Answer/Explanation to Q. 12

Viewing replies        View entire discussion

To go to the homepage of this topic, click here.
Home: lokeshcOriginal MessageReply  
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: lokeshcReply 1 of 2Reply
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: lokeshcReply 2 of 2Reply
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.

Contact Info © 1999-2024 Syvum Technologies Inc. Privacy Policy Disclaimer and Copyright