write a java program that will sort three integers the integers are entered from key board and stored in variables num1,num2,num3 respectively.the program sorts the numbers so that num1<=num2<=num3.
this is my 2nd program please help me i it.

import java.util.Random;
class Prime
{
public static void main (String[] args)
{
int[] arrays = new int[100];
for (int i=0; i<100; i++)
{
Random generator = new Random();
arrays[i] = generator.nextInt(100);
}
for (int j=0; j<100; j++)
{
double root = Math.sqrt(arrays[j]);
for ( int i = 2; i < = root; i++)
{
if (arrays[j] % i == 0 )
}
System.out.print(arrays[j] + " ");
}
}

you may have to put this in a function to work sorrie...

public static boolean isPrime (array[j])
double root = Math.sqrt(arrays[j]);
for ( int i = 2; i < = root; i++)
{
if (arrays[j] % i == 0 )
return false;
}
return true;

Write a looping program for Theater Seating selection
The program will display the theater seating (shown later) and prompt the user to select a seat to purchase using the row ...

Hi Maam and Sir.
I need your expertise on vb.net.
I have two data grid with database on their own. I want to copy/update the data from one database to ...