1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Scorpion4ik [409]
3 years ago
12

JAVA

Computers and Technology
1 answer:
Katarina [22]3 years ago
4 0

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!

You might be interested in
Which tool can capture the packets transmitted between systems over a network?
Dvinal [7]

Packet analyzer is a tool that captures every packet transmitted over a network and analyzes the content. Basically this is used to gather network statistics and troubleshoot network issues.

7 0
3 years ago
"The Cloud " is: A A form of word processing B A network for accessing applications from any device C A virtual gaming environme
mestny [16]
I think the answer may be B
7 0
3 years ago
Which act passed by the US government in 1998 criminalizes the production and distribution of technology that intends to evade a
ruslelena [56]
The Computer Fraud and Abuse Act I believe. Sorry if I’m wrong and I hope that it helps :)
8 0
3 years ago
Read 2 more answers
When you save a file, to where does your computer store it?
pentagon [3]
<span>Hello ;) 

A, because the computer will srore the informations on disk or portable disk


</span>
3 0
4 years ago
Give two examples of non printing characters
VMariaS [17]
Space — each pressing of the key will be displayed as ·
Non-breaking space (°) is a space character that prevents an automatic line break at its position.
3 0
4 years ago
Other questions:
  • April 107 90 29 31 66 0.344
    8·1 answer
  • Find Multiplication of Binary Numbers: 1100112 x 10012
    9·1 answer
  • This toolbar can be used to change the way the text in your presentation looks. Drawing
    5·2 answers
  • Suppose that TCP's current estimated values for the round trip time (estimatedRTT) and deviation in the RTT (DevRTT) are 400 mse
    9·1 answer
  • Match the actions of individuals with the code of conduct they are adhering to. Sofia is an HR Manager who keeps all employee re
    12·2 answers
  • Which is a good guideline to follow for adding animation to a presentation?. A. Use a different animation for each slide.. B. Us
    8·2 answers
  • What are the chief contributions of philosophy to artificial intelligence?
    13·1 answer
  • What is RAD? List an advantage and a disadvantage of using RAD.
    11·1 answer
  • 6. When working with a file,
    9·1 answer
  • Which excel feature makes it easy to copy and paste formulas in multiple cells?.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!