class Demo {public static void main(String[] args) {StringBufferch=new StringBuffer(DAD); StringBufferst=new StringBuffer(ch);st=st.reverse(); String str=new String(st); String sta=new String(ch); if(str.equals(sta)) System.out.println(…….); else System.out.print(……..);}}
The above written program code
Reveal answer
Fill a bubble to check yourself