Question: Instructions:There are three lines of output: (JAVA exercise) 1) For the first line, sum the lengths of and . 2) For the second line, write
Instructions:There are three lines of output: (JAVA exercise) 1) For the first line, sum the lengths of and . 2) For the second line, write Yes if is lexicographically larger than or No if it is not. 3) For the third line, capitalize the first letter in both and and print them on a single line, separated by a space.:
public class Solution {
public static void main(String[] args) { Scanner sc=new Scanner(System.in); String A=sc.next(); String B=sc.next(); /* Enter your code here. Print output to STDOUT. */ } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
