Search:

Type: Posts; User: mcmillhj

Search: Search took 0.16 seconds.

  1. Replies
    13
    Views
    4,945

    [SOLVED] Re: Help; algorithm to determine 'range'

    Thanks for pointing that out. I wasn't seeing it in my test because the last two numbers in my data set were the same.

    Hunter
  2. Replies
    13
    Views
    4,945

    [SOLVED] Re: Help; algorithm to determine 'range'

    When I make the change you suggest my algorithm actually does not work.

    with this input and your suggested change: {2,3,4,9,11,12,13,16,19,19}

    I get this output:


    rangeString: 2-9, 9,...
  3. Replies
    13
    Views
    4,945

    [SOLVED] Re: Help; algorithm to determine 'range'

    I wrote this one, I think mine is a little simpler than yours. Let me know what you think.


    public class TestRange
    {
    public static void main(String[] args)
    {
    int[] intArray =...
  4. Replies
    16
    Views
    2,924

    [SOLVED] Re: Help with classes & instance methods

    Was this an assignment for a class?


    Hunter
  5. Replies
    16
    Views
    2,924

    [SOLVED] Re: Help with classes & instance methods

    I don't really agree with how you are getting the length and width of the rectangle here. Java is an object-oriented programming language. So I am wondering, why you aren't using a constructor to...
  6. Re: java.lang.IllegalArgumentException: Identifier not found

    When I ran your code with a small test program I wrote I didn't receive an error:

    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    public class...
Results 1 to 6 of 6