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;

Hello there guys! I must implement a linked list in assembly (using MIPS). We're supposed to dynamically allocate memory for the nodes. This is what I am asked to do: ...

Hello,
I'm new in java programming, i have insert amounts in database in this Format exp : 1.100.200,00 but the subtraction of this amount give false result .
here is ...