Professional Documents
Culture Documents
String Output
String Output
5. char c, d, e;
c = “James Gosling”.charAt(7);
d = “James Gosling”.charAt(0);
e = “James Gosling”.charAt(14);
System.out.println (c + “ “ + d + “ “ + e);
6. boolean x;
x = (“Computer”.length()> “Science”.length())? true : false;
7. char ch = “Computer”.charAt(3);
System.out.println (ch);
String str = “Rajesh” ;
System.out.println (str.replace(‘j’,’k’));
Page 1
GLOBAL IQ COMPUTER EDUCATION CENTRE
P9, A. M. BOSE ROAD, KOLKATA-74 String Output Sheet
Page 2