Search:

Type: Posts; User: Norm

Search: Search took 0.17 seconds.

  1. Replies
    11
    Views
    959

    [SOLVED] Re: JApplet Grapher Not Painting

    Using hardcoded numbers is always bad practice.

    The index is past the end of the array. The array has less than 21 elements.
    The range of indexes for an array range from 0 to the array length-1....
  2. Replies
    11
    Views
    959

    [SOLVED] Re: JApplet Grapher Not Painting

    What array is being indexed? What is the size of the array? What is the value of the index?

    The code should use the array's .length attribute to control the for loop. It should NOT use a...
  3. Replies
    11
    Views
    959

    [SOLVED] Re: JApplet Grapher Not Painting

    If you are getting error messages, copy the full text and paste it here.

    One poor technique I see is hardcoding a for loop control value:

    for( int i = 0; i < 21; i ++) {
    ...
  4. Replies
    11
    Views
    959

    [SOLVED] Re: JApplet Grapher Not Painting

    Can you post the values of a,b &c to use?
  5. Replies
    11
    Views
    959

    [SOLVED] Re: JApplet Grapher Not Painting

    What are the 3 values that are entered by the user?

    For testing, just assign the values directly to a, b and c and comment out the JOptionPane calls.
    For example:

    a = "123";...
Results 1 to 5 of 5