public class StringTest {
public static void main(String[] args) {
String str1,s,s1,s2;
{
str1 = "abc";
s = new String();
s1 = new String(" adasd ");
char[] chars = new char[]{'a','b','v'};
s2 = new String(chars);
}
int a = s1.indexOf('b');
int a1 = s1.lastIndexOf('a');
int as = s1.lastIndexOf("as");
char c = s1.charAt(2);
boolean d = s1.endsWith("d");
boolean adasd = s1.equals("adasd");
boolean a2 = s1.startsWith("a");
boolean as1 = s1.contains("as");
s1.toLowerCase();
String s3 = s1.toUpperCase();
char[] chars1 = s1.toCharArray();
String replace = s1.replace("a", "v");
String trim = s1.trim();
System.out.println(s1);
System.out.println(trim);
}
}