You are viewing a single comment's thread. Return to all comments →
JAVA easy solution
public class Solution { public static void main(String[] args) { Scanner sc=new Scanner(System.in); String A=sc.next(); String B=sc.next(); int total = A.length()+B.length(); int compare = A.compareTo(B); String var = "No"; if(compare>0){ var = "Yes"; } String aConMayuscula = A.substring(0, 1).toUpperCase() + A.substring(1).toLowerCase(); String bConMayuscula = B.substring(0, 1).toUpperCase() + B.substring(1).toLowerCase(); System.out.println(total+"\n"+var+"\n"+aConMayuscula+" "+bConMayuscula); } }
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 →
JAVA easy solution