This week's giveaway is in the Spring forum. We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line! See this thread for details.

HI,
Im new to Java and I am trying to write a program that inputs an integer and finds the largest number less than the number entered. Im not sure if its a metadrome but here's an example, if I enter the number 1945 then the output should be 1789
Im new to the language so i posted in this section.

finds the largest number less than the number entered

I think there must be a bit more to the definition than that, otherwise you could just subtract one.

Here's one definition I found:

A metadrome is a number whose hexadecimal digits are in strict ascending order.

karan kampani
Greenhorn

Joined: Sep 08, 2009
Posts: 2

posted

0

Yea that the definition which I found as well. but im not sure if that's what I need to use for the program. Im stuck with the algorithm for the code, thats the problem