Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro Java
Pro Java Expert level Java questions not about a specific book. Please indicate your version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Java section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 8th, 2008, 01:31 PM
Registered User
Join Date: Nov 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default I need help with pattern recognition

I have a list with paired numbers, something like that:
351961023560483 9619165511191532
351961023560509 4372118423804205
The first number is given, and the second number is made with some kind of algorithm from the first one.
I'm trying to find a way to get the algorithm for that?
Please if somebody have an idea to msg me.
Thank you in advance!

Old February 7th, 2009, 06:41 PM
Authorized User
Join Date: Jun 2003
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to erobb Send a message via Yahoo to erobb

This can only be done on a day that a leap millisecond is added to a day. The calculations are based on the computers internal clocks and when it sees a millisecond is added then you can get the key.

Try something like this on your website

boolean haveKey = false;
while ( !haveKey){
haveKey = 0;
Old February 8th, 2009, 05:34 PM
Friend of Wrox
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts

That won't compile. You declared haveKey as boolean. How can you assign a number, zero, to a boolean? Tch!

[And if it happens to compile in Java, it shouldn't. <grin/> ]

By the by, since that was posted way back in November, and since the original poster has never posted here again, I think the odds of his seeing your mildly sick joke are astronomically low.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Speech Recognition Mantis VB How-To 2 June 2nd, 2011 05:10 AM
Face Recognition using VC++ akshat_malviya Visual C++ 2 December 21st, 2009 02:50 PM
speech recognition C# soso_jaw C# 0 July 13th, 2006 08:21 AM
text recognition vb certified VB How-To 0 July 1st, 2005 01:31 PM
DirectoryInfo.GetFiles(pattern): search pattern fo arif_1947 VS.NET 2002/2003 1 October 19th, 2004 11:59 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.