*** JAVA *** Retype and correct the code provided to combine two stringsseparated by a space. secretID.concat(spaceChar);...
Fantastic news! We've Found the answer you've been seeking!
Question:
*** JAVA ***
Retype and correct the code provided to combine two stringsseparated by a space.
secretID.concat(spaceChar); secretID.concat(lastName);
import java.util.Scanner;
public class CombiningStrings {
public static void main (String [] args) {
String secretID = "Barry";
String lastName = "Allen";
char spaceChar = ' ';
/* Your solution goes here */
System.out.println(secretID);
return;
}
}
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date: