Lock_Unlock
Forum Expert
Gandang gabi po, wag na muna mag log in haha, dami code sinesend sa email

You do not have permission to view the full content of this post. Log in or register now.



ay teka di pa na verify hahamay verification code po idol![]()
wag nalang natin i change pass? ok lang ba sa inyo? gamitin nalang ung may need
Ako po need now hehe. Face to face na po kami ewag nalang natin i change pass? ok lang ba sa inyo? gamitin nalang ung may need
pa unlock nalang po boss hehe may papaunlock po ako ito po https://www.รโแธแธกแธก.com/homework-help...r-palindrome-palindrome-phrase-read-q41134977wag nalang natin i change pass? ok lang ba sa inyo? gamitin nalang ung may need
Mali po e891840 ito code
May code papo?891840 ito code
pa unlock nalang po boss hehe may papaunlock po ako ito po https://www.รโแธแธกแธก.com/homework-help...r-palindrome-palindrome-phrase-read-q41134977
thank you po pasali rin po nito https://www.รโแธแธกแธก.com/homework-help...curity-number-last-name-first-name--q39290071Expert Answer
![]()
pravinanswered this
Program:
import java.util.*;
public class Palindrome
{
public static void main(String[] args)
{
Scanner input=new Scanner(System.in);
String phrase,str;
int len,i;
str="";
System.out.print("\n\nEnter a string or Phrase : ");
phrase=input.nextLine();
phrase=phrase.replaceAll("\\W",""); // replaceAll() - to replace all special character
len=phrase.length(); //to get a length of a phrase
for(i=len-1;i>=0;i--)
{
str=str+phrase.charAt(i); //charAt() - to get the character at specified index
}
if(phrase.equalsIgnoreCase(str))
{
System.out.println("You entered a palindrome.");
}
else
{
System.out.println("You did not enter a palindrome.");
}
System.out.println("\n");
}
}
Output:
![]()