Question: Q1: Consider the following program P with T test set 1 public boolean 1sPalindrom (String str) 21 3 boolean flagstrue} int i=0; 1 int justr.length()-1;
Q1: Consider the following program P with T test set 1 public boolean 1sPalindrom (String str) 21 3 boolean flagstrue} int i=0; 1 int justr.length()-1; while(3) if(str.charAt(++) estr.charAt() retun lagi return flag: 4 Te t1:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
