public class Example{ public static void main(String args[]) { String Flower ="Tulip "; char add = 'i'; String Floweradd = Flower + add; System.out.println("the length is: "+ Flower.length() + " The char in the middle is " + Flower.charAt(2)); } }
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more