Question: I have finished the program but I don't know how format as the question requires it. How can I fix it, so the (str1 +

I have finished the program but I don't know how format as the question requires it.

I have finished the program but I don't know how format as

the question requires it. How can I fix it, so the (str1

How can I fix it, so the (str1 + " is palindrome."only runs once?

+ " is palindrome."only runs once? Exercise 1 Sample Output This is

Exercise 1 Sample Output This is a sample transcript of what your program should do. 1 2 3 4 5 6 7 8 9 10 2 4 6 8 10 12 14 16 18 20 3 6 9 12 15 18 21 24 27 30 4 8 12 16 20 24 28 32 36 40 5 10 15 20 25 30 35 40 45 50 6 12 18 24 30 36 42 48 54 60 7 14 21 28 35 42 49 56 63 70 8 16 24 32 40 48 56 64 72 80 9 18 27 36 45 54 63 72 81 90 10 20 30 40 50 60 70 80 90 100 NOTE: You must use a nested loop for this assingment. Think about using a loop to print a single row, and then a second loop to NOTE 2: Formatting is important. Make sure your code lines the right edge of each number up in the appropriate column. 13 public static void main(String[] args) t 14 15 16 17 18 19 20 21 Scanner keyboard -new Scanner(System.in); // Declare the integer and set up the max row and column int last-10; int i- 1; // Use while-loop to print number in the order while (i ClosedLab06a [Java Application] /Library/Java/JavaVirtualMachines/jdk-11.0.1.jd 1 2 3 45 6 7 89 10 2 46 8 10 12 14 16 18 20 3 6912 15 18 21 24 27 30 4 8 12 16 20 24 28 32 36 40 5 10 15 20 25 30 35 40 45 50 6 12 18 24 30 36 42 48 54 60 7 14 21 28 35 42 49 56 63 70 8 16 24 32 40 48 56 64 72 80 9 18 27 36 45 54 63 72 81 90 10 20 30 40 50 60 70 80 90 100 17 User enter a string System. out.print("Enter a string:"); String str1-keyboard.nextLine); 18 19 20 21 //User enter a string until the string is empty while(!str1.equals("")) 23 24 25 26 27 28 29 30 31 32 //Assume the string is palindrome boolean isPalindrome true; //set an index to position0 int index -0; while(index

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!