Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please use Java Eclipse 2. Complete the Java Program: (15 points) (Submit the JAVA file) Write a JAVA program and implement the following steps (one-by-one):
Please use Java Eclipse
2. Complete the Java Program: (15 points) (Submit the JAVA file) Write a JAVA program and implement the following steps (one-by-one): 1) Declare and assign a string variable with value "New". 2) Declare and assign another string variable with value "Jersey". 3) Concatenate the two strings in above steps and display the result. 4) Replace "Jersey" with "York" in the concatenated string and display the result. 5) Create a method called "findChar" that takes an integer as argument and returns a character. This method should convert (i.e. cast) the numeric integer to corresponding character and return this as result. 6) Generate a random integer in the range 65 and 90. 7) Call the method "findChar" and pass this random integer as argument and display the return value. 8) Create two methods with the same name "findMinimum". The methods return an integer. The first method "findMinimum" takes three integers as arguments and second method "findMinimum" takes four integers as arguments. Both the methods return minimum value of their parameters as result. 9) Ask the user to enter any four integers in the Console and store the values in the variables respectfully. 10) Call the methods "findMinimum" by passing the correct numbers of arguments and display their return value
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started