Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Complete IIT AIEEE ICSE ISC PMT help forum

Complete help forum for students preparing for icse iit aieee cbse pmt and other related exams.Stay updated about all 2011 exams.
 
HomeHome  PortalPortal  SearchSearch  Latest imagesLatest images  RegisterRegister  Log in  India NewsIndia News  
Keywords
question SELECT graph ICSE CLASS RESULT 2010 computer 2009 2004 2006 paper 2007 YEAR physics UNION papers science CASE prelim
Latest topics
» Nitration of aniline - IIT JEE 2018 Advanced - solved
plzz help EmptyFri Jun 08, 2018 2:34 am by adianadiadi

» Diamagnetic - Paramagnetic - Ni(CO)4, [Ni(CN)4]2- and [NiCl4
plzz help EmptyFri Apr 06, 2018 1:05 am by adianadiadi

» IIT JEE chemistry solved interactive question paper
plzz help EmptySun Oct 29, 2017 12:11 pm by adianadiadi

» IIT JEE 2015 SOLVED QUESTION PAPER
plzz help EmptyWed Oct 19, 2016 1:44 pm by adianadiadi

» IIT JEE chemistry solved questions
plzz help EmptySat Jul 18, 2015 6:15 pm by adianadiadi

» General Description of Chinese Market for Foaming Agent ADC
plzz help EmptyFri May 09, 2014 2:09 pm by happybaicaitou

» How to get Lowest Cost MBBS Admission?
plzz help EmptyMon Feb 24, 2014 6:39 pm by MENTOR 2014

»  girl boy vashikaran specialist agori baba ji +91-9461165
plzz help EmptyTue Jan 21, 2014 6:00 pm by krshastri

»  STRONG LOST LOVE SPELL +91-9461165176
plzz help EmptyTue Jan 21, 2014 6:00 pm by krshastri

Top posters
abhas
plzz help Vote_lcapplzz help Voting_barplzz help Vote_rcap 
Anu..i luv icse...:)
plzz help Vote_lcapplzz help Voting_barplzz help Vote_rcap 
G-7
plzz help Vote_lcapplzz help Voting_barplzz help Vote_rcap 
siya
plzz help Vote_lcapplzz help Voting_barplzz help Vote_rcap 
Candy
plzz help Vote_lcapplzz help Voting_barplzz help Vote_rcap 
jOhNy
plzz help Vote_lcapplzz help Voting_barplzz help Vote_rcap 
Apurva
plzz help Vote_lcapplzz help Voting_barplzz help Vote_rcap 
WinRrule
plzz help Vote_lcapplzz help Voting_barplzz help Vote_rcap 
ambili
plzz help Vote_lcapplzz help Voting_barplzz help Vote_rcap 
saif
plzz help Vote_lcapplzz help Voting_barplzz help Vote_rcap 



Search if you can't find it here

plzz help

View previous topic View next topic Go down
AuthorMessage
osheen.just.me




plzz help Vide
PostSubject: plzz help plzz help EmptyFri Jul 04, 2008 7:44 pm

w.a.p to store 20 different names in a single dimensional array . display only those names whose first character matches with the character entered by the user.
Back to top Go down
abhas
Active member
Active member
abhas


plzz help Vide
PostSubject: isc jdk java string program plzz help EmptyTue Jul 08, 2008 9:47 pm

//here is the answer

import java.io.*;
class Sprog
{
public static void main(String args[]) throws IOException
{
BufferedReader obj=new BufferedReader(new InputStreamReader(System.in));
String arr[]=new String[20];
String ar[]=new String[20];
int x=0;
System.out.println("Enter character");
String a=obj.readLine();

for(int c=0;c<20;c++)
{
System.out.println("Enter Name");
arr[c]=obj.readLine();
arr[c]=arr[c].toLowerCase();
a=a.toLowerCase();
if (arr[c].charAt(0)==a.charAt(0) )
{
ar[x]=arr[c];
x++;
}
}

for(int d=0;d<x;d++)
{
System.out.println(ar[d]);
}
}
}


// this is one of the many possible ways to do the program...
//you may have to change it slightly so as to make it work on bluej Very Happy

Happy study
Back to top Go down

plzz help

View previous topic View next topic Back to top
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Complete IIT AIEEE ICSE ISC PMT help forum :: Computer :: Computer help forum-