Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.
All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!
post your programming problems here....
tapos sample input and output...,,
i'll do my very best para po matulungan kayo
ang anyone who wants to help you're all welcome here...
welcome
sir pa help nmn po panu po nya ma rerecognize ung capital letter... palindrome po sya sir ... for Example po ... "madam" ang output nya palindrome ..pag "Madam" nmn is not palindrome...
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplicationpal;
import java.io.*;
import java.util.Scanner;
/**
*
* @author Administrator
*/
public class JavaApplicationpal {
public static void main(String args[])throws IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String opt;
String iS;
Scanner in = new Scanner(System.in);
do
{
System.out.println("Input a string");
iS = in.nextLine();
int length = iS.length();
int i, begin, end, middle;
begin = 0;
end = length - 1;
middle = (begin + end)/2;
for (i = begin; i <= middle; i++) {
if (iS.charAt(begin) == iS.charAt(end)) {
begin++;
end--;
}
else {
break;
}
}
if (i == middle + 1) {
System.out.println("Palindrome");
}
else {
System.out.println("Not a palindrome");
}
System.out.println("another oner ?: y/n");
opt=br.readLine();
}while(opt.equals("y"));
}
}
yan po ung code ko ..salamt po ng marami
package symbianize.palindrome;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
public class SimplePalindrome {
public static void main(String args[]) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String opt;
String iS;
Scanner in = new Scanner(System.in);
do {
System.out.println("Input a string");
iS = in.nextLine();
[B][COLOR="#000080"] iS = iS.toUpperCase(); // CONVERT INPUT TO UPPERCASE FOR UNIFORM COMPARISON[/COLOR][/B]
int length = iS.length();
int i, begin, end, middle;
begin = 0;
end = length - 1;
middle = (begin + end) / 2;
for (i = begin; i <= middle; i++) {
if (iS.charAt(begin) == iS.charAt(end)) {
begin++;
end--;
} else {
break;
}
}
if (i == middle + 1) {
System.out.println("Palindrome");
} else {
System.out.println("Not a palindrome");
}
System.out.println("another oner ?: y/n");
opt = br.readLine();
} while (opt.equals("y"));
}
}
patulong naman po sa c program, ang problem ko is my input data na ko ang gagawin is pag ka display ko ng data ko dapat masort niya. yung code po sa sort or arranging ang hindi ko alam pano gawin. sana my makatulong po sakin finals ko po kasi yun.