Search:

Type: Posts; User: cagberk

Search: Search took 0.09 seconds.

  1. Re: How do I instantiate two threads of the same object, and have the objects print different things

    import java.util.concurrent.locks.ReentrantLock;

    public class Thread1 {

    public static ReentrantLock lock = new ReentrantLock();

    public static void main(String[] args) {
    Thread t =...
  2. Replies
    1
    Views
    663

    Do you have a question?

    import java.util.ArrayList;

    public class 2 {

    public static float ortalama(ArrayList<Integer> x) {
    return (float) x.stream().mapToInt(i -> i).average().getAsDouble();
    }


    public...
Results 1 to 2 of 2