Print the two strings, firstString and secondString, in alphabetical order. Assume the strings are lowercase. End with newline. Sample output: capes rabbits 365076.2342078.qx3zay7 1 import...


Print the two strings, firstString and secondString, in alphabetical order. Assume the strings are lowercase. End with newline.<br>Sample output:<br>capes rabbits<br>365076.2342078.qx3zay7<br>1 import java.util.Scanner;<br>3 public class OrderStrings {<br>public static void main (String 0 args) {<br>Scanner scnr = new Scanner(System.in);<br>String firstString;<br>String secondString;<br>4<br>5<br>7<br>8<br>firstString<br>secondString = scnr.next();<br>9<br>scnr.next();<br>10<br>11<br>12<br>* Your solution goes here<br>13<br>}<br>15 }<br>14<br>

Extracted text: Print the two strings, firstString and secondString, in alphabetical order. Assume the strings are lowercase. End with newline. Sample output: capes rabbits 365076.2342078.qx3zay7 1 import java.util.Scanner; 3 public class OrderStrings { public static void main (String 0 args) { Scanner scnr = new Scanner(System.in); String firstString; String secondString; 4 5 7 8 firstString secondString = scnr.next(); 9 scnr.next(); 10 11 12 * Your solution goes here 13 } 15 } 14

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here