Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    25
    Views
    2,017

    Re: HIIIIIIIIIIIIIIIII

    Please copy the full text of the compiler's error message and paste it here.
  2. Replies
    25
    Views
    2,017

    Re: HIIIIIIIIIIIIIIIII

    @sainisuresh101 Can you post some code that shows what you are talking about?

    @AJAY KAMBLE
    Please edit your post and wrap your code with code tags:


    YOUR CODE HERE

    to get highlighting and...
  3. Replies
    25
    Views
    2,017

    Re: HIIIIIIIIIIIIIIIII

    Please edit your post and wrap your code with code tags:


    YOUR CODE HERE

    to get highlighting and preserve formatting.
  4. Replies
    25
    Views
    2,017

    Re: HIIIIIIIIIIIIIIIII

    Please copy the full text of the error message and paste it here.

    Also post the code and be sure to wrap your code with code tags:


    YOUR CODE HERE

    to get highlighting and preserve...
  5. Replies
    25
    Views
    2,017

    Re: HIIIIIIIIIIIIIIIII

    Then you need to put something into the array BEFORE trying to access it. Assign some values to the s array before trying to access its elements:

    s=new String[]{"aa", "bb"}; // define an array...
  6. Replies
    25
    Views
    2,017

    Re: HIIIIIIIIIIIIIIIII

    Can you see the question I have posted? Please answer it.
  7. Replies
    25
    Views
    2,017

    Re: HIIIIIIIIIIIIIIIII

    Once more:

    Why is the code trying to access the elements in the s array? Where you given instructions with the assignment about how to execute the program so there would be elements in the s array?
  8. Replies
    25
    Views
    2,017

    Re: HIIIIIIIIIIIIIIIII

    The s array is empty. The code tries to access its first and second elements. The JVM throws an exception: ArrayIndexOutOfBoundsException because there are no elements in the array.

    I've asked...
  9. Replies
    25
    Views
    2,017

    Re: HIIIIIIIIIIIIIIIII

    Test the length of the array and don't try to access its elements if there are not enough elements in the array.

    Why is the code trying to access the elements in the s array? Where you given...
  10. Replies
    25
    Views
    2,017

    Re: HIIIIIIIIIIIIIIIII

    Can you explain what your problem is? Copy the full text of the error message and paste it here.

    Please edit your post and wrap your code with code tags:


    YOUR CODE HERE

    to get...
Results 1 to 10 of 10