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

Complete help forum for students preparing for icse iit aieee cbse pmt and other related exams.Stay updated about all 2011 exams.
 
HomeHome  PortalPortal  FAQFAQ  SearchSearch  RegisterRegister  MemberlistMemberlist  UsergroupsUsergroups  Log in  India NewsIndia News  
Keywords
YEAR question RESULT prelim 2010 papers CLASS
Latest topics
Top posters
abhas
 
Anu..i luv icse...:)
 
G-7
 
siya
 
Candy
 
jOhNy
 
Apurva
 
WinRrule
 
ambili
 
saif
 



Search if you can't find it here

Program to explain some String functions

View previous topic View next topic Go down
AuthorMessage
saif
Active member
Active member



PostSubject: Program to explain some String functions Wed Feb 24, 2010 8:13 am

import java.io.*;
class strfun
{
public static void main(String args[])throws IOException
{
String s="ABCDEFAA";
System.out.println(s.replace('A','B'));
System.out.println(s.replace("AB","B"));
System.out.println(s.replace("A",""));
BufferedReader obj =new BufferedReader(new InputStreamReader(System.in));
char c=(char)(obj.read());
int a=10;
String x=Integer.toString(a);
System.out.println(x);
x=Character.toString(c);
System.out.println(x);
}
}



//Best Of luck To All
Back to top Go down
View user profile

Program to explain some String functions

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 :: ISC :: ISC 2010 [Class xii] :: Computer-