Get Off-Campus Placement Jobs Info !!!
Programs asked in Mettl Coding Round
Click To Practce List of Programs asked in Nagarro !!!

Program Discussion :: Basics

Home > Programs > Basics

9 / 248

Can you write a Palidrome program?


import java.util.*;

public class strings {
    public static void main(String[] args) {

/*works for both numbers and strings*/
        String str,text1=" ";int s=0,c=0;
        Scanner sc=new Scanner(;
        StringBuilder b = new StringBuilder(str);

Asked In :: Tavant Technologies

Post Your Answer Here:


Post Your Reply Here: