public class W07N01 { public static void main(String[] args) { boolean b = true; // convert a boolean value to a String value //first operand is String, so second is converted to a String String bAsString = "" + b; String floatAsString = "" + 5.5; // Two different strings may have the same characters, // but they are not the same String object String s = "Hello"; String t; t = "Hello"; // t = (String) t.charAt(0); s = "Idont"; System.out.println(s + t); System.out.println(t.charAt(0)); System.out.println(t.indexOf('e')); System.out.println(t.indexOf('l')); System.out.println(t.indexOf('t')); s = IO.readString("Your string (try Green): "); System.out.println(s.equals("Green")); System.out.println(s=="Green"); } }