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?
Calling methods
Transforming whispers into mighty roars
Report a typo
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
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.