please type the code java programming please use the first question Boolean variable for true or false This problem set will test your knowledge of System I/O, and variable assignment. Your task is to create several different java classes (.java files) that will produce a specific output based on the user input. All input will be given to you either as a command-line argument or typed in from the keyboard. Below you will find directions for each class you need to create. Please make sure that the class name and java file name match the name specified in the directions below. For example, the code for the problem named "IsSame" should be put in a java file name IsSame.java and that file should have a class named public class IsSame. IsSame This program will accept two user inputted values from the console. The values will be words. The program should print "true" if the words are equal and "false" if the words are not equal. The last string that this program should print is "true" or "false", nothing else. Sum This program will accept two user inputted values from the console, the user will only type in whole numbers. The program should add the two numbers together then print the sum. The last string that this program should print is the result of the calculation, nothing else. Replace This program will accept three user inputted values. The first two user-inputted values are single-character strings. The last user input is a sentence of random words. This program should replace all occurrences of the first inputted character with the second inputted character in the sentence. Finally, it should print the sentence after the characters have been replaced. The last string that this program should print is the sentence with the replaced characters, nothing else. LessThanOrEqual This program will accept two user inputted values that are whole numbers. The program should print "true" if the first number is less than or equal to the second number otherwise it should print "false". The last string that this program should print is "true" or "false", nothing els
please type the code
java
please use the first question Boolean variable for true or false
This problem set will test your knowledge of System I/O, and variable assignment. Your task is to create several different java classes (.java files) that will produce a specific output based on the user input. All input will be given to you either as a command-line argument or typed in from the keyboard.
Below you will find directions for each class you need to create. Please make sure that the class name and java file name match the name specified in the directions below. For example, the code for the problem named "IsSame" should be put in a java file name IsSame.java and that file should have a class named public class IsSame.
IsSame
This program will accept two user inputted values from the console. The values will be words. The program should print "true" if the words are equal and "false" if the words are not equal. The last string that this program should print is "true" or "false", nothing else.
Sum
This program will accept two user inputted values from the console, the user will only type in whole numbers. The program should add the two numbers together then print the sum. The last string that this program should print is the result of the calculation, nothing else.
Replace
This program will accept three user inputted values. The first two user-inputted values are single-character strings. The last user input is a sentence of random words. This program should replace all occurrences of the first inputted character with the second inputted character in the sentence. Finally, it should print the sentence after the characters have been replaced. The last string that this program should print is the sentence with the replaced characters, nothing else.
LessThanOrEqual
This program will accept two user inputted values that are whole numbers. The program should print "true" if the first number is less than or equal to the second number otherwise it should print "false". The last string that this program should print is "true" or "false", nothing else
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 4 images