Search:

Type: Posts; User: pinotje

Search: Search took 0.48 seconds.

  1. Replies
    3
    Views
    1,578

    Re: How to run a "Add"-method from a method?

    Java-forums.org and Javaprogrammingforums.com are two different websites....
  2. Replies
    3
    Views
    1,578

    How to run a "Add"-method from a method?

    Hi all,


    I've a Java code (GWT):



    package com.practicum.client.out;

    import java.util.ArrayList;
  3. Re: The java-output doesn't give the right result?

    I've asked my teacher, he said that if I remove the "synchronized" then I'll get a random result.
    So if I remove "synchronized" then I'll get that random output, if I add "synchronized" then the...
  4. Re: The java-output doesn't give the right result?

    Okay, I'll complain my teacher.... =P
  5. Re: The java-output doesn't give the right result?

    Yup, That's exactly what I'm thinking....
    so maybe it's a little mistake in the school assignment...?

    or maybe I should remove "synchronized" ?
    or maybe adjust the "for-lus" ?
    just an idea....
  6. Re: The java-output doesn't give the right result?

    Hi,

    I'm really sorry, but according to my school assignment, I must do it this way.

    Luckily it is not a lot codes, so I think Java-experts can helping me out without compiling it....

    Thanks!
  7. The java-output doesn't give the right result?

    Hi all,

    This is my code, which I've made for my school assignment:


    public class Main {
    public static void main (String[] args) throws InterruptedException {
    Stand st = new Stand(0);...
Results 1 to 7 of 7