NotesString
NotesString
String ssss;
ssss=s+ss+sss;
Trim
Convert
uppercase toUpper
lowercase toLower
string_element.
System.out.println(s.indexOf('u'));
to compare
equals
equalsIgnoreCase
s.equals(y) true/false
true is returned only if the two strings match exactly
if you want to ignore case
s.equalsIgnoreCase(y) true/false
s.concat(ss);
s.concat(sss.trim())
lang
System.out.println(s.reverse()); nurA olleH
util
Date
Date
getDate();
getTime()
getHour();
getMinute();
getSecond()
calender
getDay();
getMonth();
getYear();
getHour();
getSecond();
getMinute();
import java.util.*;
Password
class string_test
{
public static void main(String ss[]) throws IOException
{
String pwd="TEST",upwd;
DataInputStream dis=new DataInputStream(System.in);
System.out.println("\n Please Enter the Password");
upwd=dis.readLine();
if(pwd.equals(upwd))
{
teststatus tt=new teststatus();
}
}
}