You need to initialise the Date class object, check Date (Java 2 Platform SE v1.4.2) for guidance.
Type: Posts; User: mccolem
You need to initialise the Date class object, check Date (Java 2 Platform SE v1.4.2) for guidance.
From my understanding of the question you want to read in a number between 20 and 80 and print out all integers between that number and 80.
-Your computer only executes code that is in the main...
If I do that for 3-digit factors, the first palindrome I find is
995*583 = 580085
which is smaller than 993*913 = 906609
public long getLargestPalindrome1(){
for( long i = highValue; i > highValue/10 ; i = i - 1){
if(i < factor2) return max;
//Here the method exits if i is smaller than the smallest...
I have tried that already but its complicated because if the factors are even number digits e.g. 99, I have to decrease i by 11 and j by 1, but if it is an odd number of digits e.g. 999 I have to...
Try that and see if it works.
...edited by moderator
If you have any questions just ask.
I have the following problem to solve:
Find the largest palindromic number made from the product of two N-digit numbers.
This is my class to find the largest palindromic number:
public...