Search:

Type: Posts; User: hemla

Search: Search took 0.12 seconds.

  1. Thread: Check code?

    by hemla
    Replies
    6
    Views
    1,020

    [SOLVED] Re: Check code?

    Got the desired result!! i was supposed to type in System.out.println(java.util.Arrays.toString(maxEnd(new int[]{1, 2, 3})));
    Thanks a lot for the help! :)
  2. Thread: Check code?

    by hemla
    Replies
    6
    Views
    1,020

    [SOLVED] Re: Check code?

    also i get the error, cannot find symbol variable nums after typing in System.out.println("[I@3487a5cc "+ java.util.Arrays.toString(nums))
    could u please correct it? need it really urgent and i...
  3. Thread: Check code?

    by hemla
    Replies
    6
    Views
    1,020

    [SOLVED] Re: Check code?

    You mean: System.out.println("[I@3487a5cc "+ java.util.Arrays.toString(nums)); ? :S
  4. Thread: Check code?

    by hemla
    Replies
    6
    Views
    1,020

    [SOLVED] Check code?

    i have to write a code to verify the following:
    maxEnd(new int[]{1, 2, 3}) -> {3, 3, 3}
    maxEnd(new int[]{1, 3}) -> {3, 3}
    maxEnd(new int[]{3}) -> {3}

    Here's my code:


    public class OneB {...
Results 1 to 4 of 4