Look at this code:
String name = "galactic hunter";
String learning = "java";
String combinedString = name + " learning " + learning;
System.out.println(combinedString);We have a string combinedString in which strings and variables are combined using the + operator. Your task is to rewrite the code using printf or format. The output mustn't change.
Sample input:
Sample output:
galactic hunter learning java