import java.util.Scanner;
public class JavaApplication83 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Enter Strings: ");
String word1 = scan.nextLine();
String word2 = scan.nextLine();
String newWord = "";
if (word1.length() == word2.length()){
for (int i = 0; i < word1.length(); i++)
{
newWord += word1.charAt(i) +""+word2.charAt(i);
}
}
else{
newWord = "error";
}
System.out.println(newWord);
}
}
I hope this helps!
Answer:
false, that shouldn't be a a priority to identify if they are or not.
Explanation:
Answer:
Explanation:
I noticed the \n, \n will cause the new line break, delete it.
try code below:
<em>System.out.println(" " + " " + "NO PARKING");</em>
<em>System.out.println("2:00 - 6:00 a.m.");</em>