![]() |
|
|
![]() |
|
|
#1 | |
|
Registered User
Join Date: Jan 2002
Member # 9614
Location: Charlottesville, VA
Posts: 932
|
(possibly) World's Longest Palindrome
Inactivity leads to such wonderful discoveries.... kinda.
Quote:
__________________
[url="http://www.pirate4x4.com/forum/showthread.php?p=10154905#post10154905"]Trading stuff[/url] |
|
|
|
|
|
|
#2 |
|
Registered User
Join Date: Apr 2001
Member # 4363
Location: Virginia Beach, VA
Posts: 52
|
Naught reading all of that.
__________________
'92 XJ- Stroked, Lifted, Bumpered, 44ed, Geared, Locked, LEDed, Scratched, Dented, Tired, and Exhausted. [QUOTE=fullygruntled]People have sex with furniture, too. I can't explain it, I just report it.[/QUOTE] |
|
|
|
| Sponsored Links |
|
|
#3 | |
|
Registered User
Join Date: Jan 2002
Member # 9614
Location: Charlottesville, VA
Posts: 932
|
Quote:
__________________
[url="http://www.pirate4x4.com/forum/showthread.php?p=10154905#post10154905"]Trading stuff[/url] |
|
|
|
|
|
|
#4 |
|
SchuitOverBuilt
|
palinwhat??
|
|
|
|
|
|
#5 | |
|
Registered User
Join Date: Jan 2002
Member # 9614
Location: Charlottesville, VA
Posts: 932
|
Quote:
Other examples: Radar Ma handed Edna ham. A man, a plan, a butt tub: anal Panama!
__________________
[url="http://www.pirate4x4.com/forum/showthread.php?p=10154905#post10154905"]Trading stuff[/url] |
|
|
|
|
|
|
#6 |
|
Registered User
Join Date: Apr 2001
Member # 4363
Location: Virginia Beach, VA
Posts: 52
|
Racecar.
__________________
'92 XJ- Stroked, Lifted, Bumpered, 44ed, Geared, Locked, LEDed, Scratched, Dented, Tired, and Exhausted. [QUOTE=fullygruntled]People have sex with furniture, too. I can't explain it, I just report it.[/QUOTE] |
|
|
|
|
|
#7 |
|
Arizona Trail Riders
Join Date: Aug 2000
Member # 1418
Location: Not Cal
Posts: 3,344
|
I Palindrome I
__________________
You need a Thneed 84 Toyota CJ2a Get Propane |
|
|
|
|
|
#8 | |
|
Registered User
Join Date: Apr 2001
Member # 4363
Location: Virginia Beach, VA
Posts: 52
|
Quote:
__________________
'92 XJ- Stroked, Lifted, Bumpered, 44ed, Geared, Locked, LEDed, Scratched, Dented, Tired, and Exhausted. [QUOTE=fullygruntled]People have sex with furniture, too. I can't explain it, I just report it.[/QUOTE] |
|
|
|
|
|
|
#9 |
|
Registered User
Join Date: Sep 2001
Member # 7163
Location: PA
Posts: 1,846
|
Please tell me you did NOT come up with that.
Now I'm going to have to write a program to check it.
|
|
|
|
|
|
#10 | |
|
Who?? Me??
Join Date: Jul 2002
Member # 12698
Location: Greenville, SC
Posts: 1,115
|
Quote:
Already got one ![]() This might work, been a while since I used it. import java.io.*; public class PalindromeClass { private String strString, palindrome; //This code is the constructor method. public PalindromeClass(String inString) { strString = inString; palindrome = null; } //This code will check to see if the arguement is a Palindrome. public boolean checkPalindrome() { if(strString.equals("")) return false; else { int cnt; StringBuffer temp = new StringBuffer(); String tempString; tempString = strString.toLowerCase(); for(cnt = 0; cnt < tempString.length(); cnt++) { if(tempString.charAt(cnt) >= 'a' && tempString.charAt(cnt) <= 'z') { temp.append(tempString.charAt(cnt)); } } palindrome = temp.toString(); return palindrome.equals(temp.reverse().toString()); } } //Will return the value of palindrome. public String getPalindrome() { return palindrome; } //Will return the value of the string. public String getString() { return strString; } }
__________________
Mike C - SAVE TELLICO POST # 152 Thanks to: BFGoodrich, Solid Axle Ind, East Coast Diffs, Carolina Driveline, Blazer MX, OX USA, Winchline.com, Griffin Thermal Products, Sway-a-way Eastern team #94 The INTERNET... it's not just for porn anymore!!! www.rockcrawlersdigest.com |
|
|
|
|
|
|
#11 | |
|
Registered User
Join Date: Jan 2002
Member # 9614
Location: Charlottesville, VA
Posts: 932
|
Quote:
__________________
[url="http://www.pirate4x4.com/forum/showthread.php?p=10154905#post10154905"]Trading stuff[/url] |
|
|
|
|
|
|
#12 |
|
Who?? Me??
Join Date: Jul 2002
Member # 12698
Location: Greenville, SC
Posts: 1,115
|
May still work, been a while since I used it.
import java.io.*; public class MainClass { static BufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in)); static PrintWriter screen = new PrintWriter(System.out, true); public static void main (String[] args) throws IOException { boolean go = true; String test; while(go) { screen.println("Please enter a string "); screen.flush(); PalindromeClass inputString = new PalindromeClass(keyboard.readLine()); test = inputString.getString(); if(test.equals("")) go = false; else { screen.println("The string entered is " + inputString.getString()); if(inputString.checkPalindrome()) { screen.println("The string is a Palindrome!"); screen.println("The palindrome is " + inputString.getPalindrome()); } else screen.println("The string is not a Palindrome!"); } } } } public class PalindromeClass { private String strString, palindrome; //This code is the constructor method. public PalindromeClass(String inString) { strString = inString; palindrome = null; } //This code will check to see if the arguement is a Palindrome. public boolean checkPalindrome() { if(strString.equals("")) return false; else { int cnt; StringBuffer temp = new StringBuffer(); String tempString; tempString = strString.toLowerCase(); for(cnt = 0; cnt < tempString.length(); cnt++) { if(tempString.charAt(cnt) >= 'a' && tempString.charAt(cnt) <= 'z') { temp.append(tempString.charAt(cnt)); } } palindrome = temp.toString(); return palindrome.equals(temp.reverse().toString()); } } //Will return the value of palindrome. public String getPalindrome() { return palindrome; } //Will return the value of the string. public String getString() { return strString; } } edit: I have the exe file but it runs in a dos window and theres no way I'm re-typing that
__________________
Mike C - SAVE TELLICO POST # 152 Thanks to: BFGoodrich, Solid Axle Ind, East Coast Diffs, Carolina Driveline, Blazer MX, OX USA, Winchline.com, Griffin Thermal Products, Sway-a-way Eastern team #94 The INTERNET... it's not just for porn anymore!!! www.rockcrawlersdigest.com Last edited by snobrder; 11-10-2005 at 11:34 AM. |
|
|
|
|
|
#13 |
|
I'm the momma
|
Anyone have some Excedrin?????
sheesh....
__________________
Tin BendersSAVE THE HAMMERS!!! Food fixes everything....except for my weight problem. ![]()
|
|
|
|
|
|
#14 | |
|
i think not
Join Date: Jun 2001
Member # 5433
Location: San Mexico, Ca.
Posts: 6,823
|
Quote:
__________________
What are we supposed to do with nature... just look at it? |
|
|
|
|
|
|
#15 |
|
I solve problems
|
That may be the longest palindrome narrative. I think the longest palindrome word is 'releveler'
__________________
|
|
|
|
|
|
#16 | |
|
Wahine keiki
Join Date: Jul 2001
Member # 5859
Location: Here
Posts: 2,412
|
Quote:
KINNIKINNIK DETARTRATED DETANNATED
__________________
Ka 'aina uluwehi, ko kakou kuleana.
- The lush life-giving land, our personal responsibility. RIP Dennis Mayer Ventura County Axle SnappersNorCal |
|
|
|
|
|
|
#17 |
|
Wheeler
Join Date: Aug 2007
Member # 98545
Location: Kentucky
Posts: 206
|
Yo banana boy
Last edited by Blackjeep2; 12-10-2009 at 01:51 PM. |
|
|
|
|
|
#18 |
|
Everyday is Tuesday.
Join Date: Feb 2000
Member # 47
Location: The basement
Posts: 14,569
|
you need a real hobby
|
|
|
|
|
|
#19 |
|
Arizona Trail Riders
Join Date: Aug 2000
Member # 1418
Location: Not Cal
Posts: 3,344
|
__________________
You need a Thneed 84 Toyota CJ2a Get Propane |
|
|
|
|
|
#20 |
|
Registered User
Join Date: Jan 2002
Member # 9614
Location: Charlottesville, VA
Posts: 932
|
This was resurrected why?
Oh, right. Because its awesome. |
|
|
|
|
|
#21 |
|
The Legend
Join Date: May 2004
Member # 30212
Location: middleburg fl
Posts: 331
|
__________________
46's, air suspension,60/14b, C-6. 203/205, 414W EFI. Its the Legend. www.SETTC.net www.claycounty4x4.com www.forums.claycounty4x4.com My build Now voting on entries for the SETTC 2010!!! at our forums. |
|
|
|
|
|
#22 |
|
I'm a little teapot.
Join Date: Mar 2005
Member # 44480
Location: Kalispell, MT
Posts: 6,183
|
A slut nixes sex in Tulsa!!
|
|
|
|
|
|
#23 |
|
Debauchery Wizard
Join Date: Oct 2006
Member # 80219
Location: Sacramenthole
Posts: 1,312
|
you guys need bathroom readers. Pages of palindromes!
__________________
Need some freebie stock chevy front leaf springs in the sac area. Rock Goonies Who the fuck is Ryan Bush?
|
|
|
|
|
|
#24 |
|
Registered User
Join Date: Dec 2001
Member # 8665
Location: tucson
Posts: 1,368
|
a man, a plan, a canal, panama.
|
|
|
|
|
|
#25 |
|
Wahine keiki
Join Date: Jul 2001
Member # 5859
Location: Here
Posts: 2,412
|
I am a palindrome. Upside down too.
__________________
Ka 'aina uluwehi, ko kakou kuleana.
- The lush life-giving land, our personal responsibility. RIP Dennis Mayer Ventura County Axle SnappersNorCal |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|