Search:

Type: Posts; User: lucasantos

Search: Search took 0.19 seconds.

  1. Re: Generating array (or arraylist) matrix from txt file

    Hi benjalizana,
    here I post you my solution that has been tested ONLY with your file.
    You have to stress test it.

    ...edited by moderator

    Do you like this solution?
    Bye
  2. Replies
    13
    Views
    5,676

    Re: why paintComponent method is not invoked?

    Hi ice,
    maybe you lost this code:

    public static void main(String[] args)
    {
    JFrame f = new JFrame("Your Frame");
    f.setSize(300, 300);
    TextPanel panel = new TextPanel();
    f.add(panel);...
  3. Replies
    9
    Views
    1,209

    Re: Help please.

    As tell you copeg, if DrawArcs constructor is

    public DrawArcs() {
    setTitle("DrawArcs");
    getContentPane().add(new ArcsPanel());
    }

    u don't have problems
  4. Replies
    9
    Views
    1,209

    Re: Help please.

    I'm using Eclipse. Can u try with it?
  5. Replies
    9
    Views
    1,209

    Re: Help please.

    I see a draw like a ventilator.
    I don't have runtime error.

    If you're using the command prompt for compiling, you can type
    java -version
    and you know your jdk's version.
  6. Replies
    9
    Views
    1,209

    Re: Help please.

    Hi Bruzurk,
    can u tell me what do u jdk's version use for compiling?
    I'm using jdk1.6.0.18 and I don't have your problem.

    Bye
  7. Replies
    7
    Views
    3,820

    Re: difficult program

    Hi Fordy252,
    I can't open your file.
    Bye
  8. Thread: DATE.java!

    by lucasantos
    Replies
    1
    Views
    1,843

    Re: DATE.java!

    Hi hiimjoey11,
    if user inserts a date with format m/d/yyyy, method formatDay has an error
    because you retrive day with a substring(3,5).

    If you want that user can insert date with format...
  9. Replies
    1
    Views
    1,369

    Re: Coding error

    Hi chemy G,
    a solution can be sort the array.
    The code is

    System.out.println( "Please input the array: " );
    a = ITI1120.readIntLine();

    Arrays.sort(a);
    first = a[a.length-1];
    second =...
  10. Re: My program doesnt want to do its math point my errors out please

    Hi redlight,
    in your code there isn't initComponents(), so there isn't GUI! I can't help u!
    Bye
  11. Re: Advancing day w/ if/else & switch statement

    Hi rbread80,
    in tester class, you set from standard input 3 integer: day, month and year.
    But you don't use your class MyDate.

    Maybe the solution is:
    put in your tester class this code:
    ...
  12. Replies
    2
    Views
    2,379

    Re: Restarting at the beginning of an array

    Hi bonbon242,
    I don't know if I understand your problem, but I think that if position is 4 and a.length()=3, you want return at the first element of your array.
    For me, if you use mod function, you...
  13. Thread: buggy class

    by lucasantos
    Replies
    1
    Views
    3,262

    Re: buggy class

    Hi,
    this is the problem:
    when you change "small $7" to "large $9", the event, that is fired, is on the size
    select. And the totalprice is set to sizePrice (=> $9).
    Others if (source ==...
  14. Replies
    4
    Views
    1,835

    Re: Boolean Value Not Changing

    Hi, maybe because your server responde Valid\n or Invalid\n and your client is wainting Valid without \n.
    Can u try?
    Bye
  15. Replies
    4
    Views
    2,153

    Re: java integers

    Hy, this is the my solution for Exercise 1.
    If u don't specify 2 input, in console u find "I need 2 input as parameters";
    If the input aren't integer, the message will be "Inputs have to be...
Results 1 to 15 of 16