Question: 2. Develop test cases to satisfy statement testing 1 importjava.util.*; 2 class Palindrome 3 { 4 5 6 7 8 9 10 11 12
2. Develop test cases to satisfy statement testing 1 importjava.util.*; 2 class Palindrome 3 { 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20} publicstaticvoid main (Stringargs []) String original, reverse =""; Scanner in new Scanner (System.in); System.out.println("Enter a string to check palindrome"); original in.nextLine(); int length original.length(); for (inti= length -1;i>=0; i--) Paths www.w wwwwww reverse = reverse +original.charAt(i); if (original.equals (reverse)) else (Ctrl) Processes Links System.out.println("Entered string is a palindrome."); System.out.println ("Entered string is not a palindrome."); www Input Test Cases Output
Step by Step Solution
There are 3 Steps involved in it
To satisfy statement testing we need to create test cases that cover all possible statements in the ... View full answer
Get step-by-step solutions from verified subject matter experts
