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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!