String Handling
String - It is a collection of characters. Program- public class str { public static void main(String args[]) { String data; data = "Mynameiskhan"; System.out.println(data); } } Functions used in String handling- -> used for output 1. charAt(index) - it is used to display a character in the string, by giving the appropriate index. ex- String data1 = "Chitransh"; data1.charAt(2); -> i 2. codePointAt(index) - it is used to display the ascii value of given character. ex- String data1 = "Chitransh"; data1.codePointAt(3); -> 116(ascii code of t) 3. codePointBefore(index) - giving the ascii code of the character before the given index of the character. ex- String data1= "Chitransh"; data1.codePointBefore(3); -> 105(ascii code of i) // index is given 3 but displays the output for index position 2. 4. compareTo() - it returns the values in the form of 0(if true) or non zero(if false). ex-String...