Transforming whispers into mighty roars

Report a typo

What changes would you make to the given code to transform the input string "Hello, World!" into uppercase, find its length, extract a substring, and display the results?

Fill in the gaps with the relevant elements
public class StringTransformation {
    public static void main(String[] args) {
        String input = "Hello, World!";
        String upperCase = input.();
        int  = upperCase.length();
        String  = upperCase.substring(7);
        System.out.(length + " " + substring);
    }
}

Create a free account to access the full topic