Write code that prompts the user to enter a string


Question 1: Write code that prompts the user to enter a string containing ONLY a series of digits, then complete all of the following operations:

Question 2: Find a method in class Character which will test if a character is a "digit", using this method construct a loop that tests if EVERY character in the string input by the user is a digit. If all of the characters are a digit, output true, otherwise output false.

Question 3: If part "A" is true, then find a method to convert the users input to an actual integer value, and output the value, and the value divided by 3.

The solution must be error free and compile correctly on first attempt.  Any code that does not do this will not be awarded points.

 

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write code that prompts the user to enter a string
Reference No:- TGS0959851

Expected delivery within 24 Hours