hi,
i have the following codes i did
now i need top collect the output of these arrays to a third one, and then see what values are same..
plz help me in this code..
/*********************************
* Program Name: Task2.java *
* Date: 27 Janauary 2008 *
* Programmer: Dhanandjay MOTAH *
*********************************/
import java.io.*;
import java.util.Random;
import java.util.Vector;
public class Task3
{
public static class Thread1 extends Thread
{
int size = 5;
int arr1[] = new int;
public void run()
{
for (int i=0;i<arr1.length;i++)
//finds only positive number and between 0 to 100
Random r = new Random();
arr1=Math.abs(r.nextInt()%101);
System.out.println(arr1);
}
}
public static void main(String[] args)
{
new Thread1().start();
}
}