Search:

Type: Posts; User: mccolem

Search: Search took 0.24 seconds.

  1. Replies
    16
    Views
    8,533

    Re: Designing an Account Class

    You need to initialise the Date class object, check Date (Java 2 Platform SE v1.4.2) for guidance.
  2. Re: How do I connect 2 method headers to make it recursive???

    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...
  3. Replies
    6
    Views
    476

    Re: Efficiency problem

    If I do that for 3-digit factors, the first palindrome I find is

    995*583 = 580085

    which is smaller than 993*913 = 906609
  4. Replies
    6
    Views
    476

    Re: Efficiency problem

    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...
  5. Replies
    6
    Views
    476

    Re: Efficiency problem

    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...
  6. Replies
    9
    Views
    449

    [SOLVED] Re: cannot find symbol error

    Try that and see if it works.
  7. Replies
    16
    Views
    8,533

    Re: Designing an Account Class

    ...edited by moderator


    If you have any questions just ask.
  8. Replies
    6
    Views
    476

    Efficiency problem

    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...
Results 1 to 8 of 8