how to convert string to class in java code example
Example 1: how to convert a string to object in java
String string = "Hello, World!";
Object obj = string;
Example 2: convert string to mayus java
String str = "Hello World!";
System.out.println(str.toUpperCase()); //prints "HELLO WORLD!"