You are viewing a single comment's thread. Return to all comments →
import java.io.; import java.util.;
public class Solution {
public static void main(String[] args) { Scanner scan = new Scanner(System.in); String str1 = scan.nextLine(); String str2 = scan.nextLine(); System.out.println(str1.length()+str2.length()); String res = str1.compareTo(str2)>0?"Yes":"No"; System.out.println(res); str1=Character.toUpperCase(str1.charAt(0))+str1.substring(1); System.out.print(str1+" "); str2=Character.toUpperCase(str2.charAt(0))+str2.substring(1); System.out.print(str2); }
}
Seems like cookies are disabled on this browser, please enable them to open this website
Java Strings Introduction
You are viewing a single comment's thread. Return to all comments →
import java.io.; import java.util.;
public class Solution {
}