You are viewing a single comment's thread. Return to all comments →
public class Solution {
public static void main(String[] args) { Scanner sc=new Scanner(System.in); String A=sc.next(); String B=sc.next(); int result; result = A.length()+B.length(); System.out.println(result); int res = A.compareTo(B); if(res>0){ System.out.println("Yes"); }else System.out.println("No"); String FLA = A.substring(0,1); String RFA = A.substring(1); String RA = FLA.toUpperCase()+RFA; System.out.print(RA+ " "); String FLB = B.substring(0,1); String RFB = B.substring(1); String RA1 = FLB.toUpperCase()+RFB; System.out.print(RA1 + ""); }
}
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 →
public class Solution {
}