Do you mean how do you write a Java program to print out those numbers in ascending order? Because you have specified thosenumbers, I can only assume that the following will suffice:-
public int main( String[] args )
{
System.out.println( "0.235 4.62 7.25 7.89 23.5" );
}
If you want to know how to sort a general array into ascending order, try Google for sorting algorithms, such as "bubble sort", "insertion sort", "heap sort", "quick sort" etc.
class Bubblesort{
public static void main(String a[]){
int i;
int array[] = {2345,12,1,111};
System.out.println("Values Before the sort:\n");
for(i = 0; i < array.length; i++)
System.out.print( array[i]+" ");
System.out.println();
bubble_srt(array, array.length);
System.out.print("Values after the sort:\n");
for(i = 0; i <array.length; i++)
System.out.print(array[i]+" ");
System.out.println();
System.out.println("PAUSE");
}
public static void bubble_srt( int a[], int n ){
int i, j,t=0;
for(i = 0; i < n; i++){
for(j = 1; j < (n-i); j++){
if(a[j-1] > a[j]){
t = a[j-1];
a[j-1]=a[j];
a[j]=t;
}
}
}
}
}
It should be fairly simple to program a bubble sort (though this is not very efficient for large arrays). If elements #0 and #1 of an array are out of order, exchange them. Then do the same with elements #1 and #2, etc., up to elements number (n-2) and (n-1). Then go back to the beginning, and repeat everything (n-1) times. (This will require two nested for loops.)
To sort any array of numbers, use the built in Arrays.sort() methods.
int[] array = new int[]{2345, 12, 1, 111};
Arrays.sort(array);
I suggest you do a bubble sort; that one is fairly easy to implement.
AI Program (artificial intelligence) maybe?
these are short pieces of double stranded DNA of known nucleotide sequence,its a blunt-ended,but contains a restriction site.
stdin is short for "standard input." When you input data into the terminal while the program is running, this is where it goes.stdout is short for "standard output." This is where all of the data that you print out of your program (via printf(), puts(), etc.) goes. stderr is short for "standard error." This is where you should print your error messages to (via fprintf(), fputs(), etc.).
Short for traceroute: it is a utility program to check IP-routing. When you start it, e.g: tracert www.ibm.com
The Concurrent Versions System (CVS for short) is an application that tracks changes to the source code of a program.
That appears to be a DNA sequence to something. That is too short of a sequence for anyone to tell you the species.
A long TR and short TE sequence is usually called Proton density -weightedA short TR and short TE sequence is usually called T1-weightedA long TR and long TE sequence is usually called T2-weighted
blank program
Simple and short DNA sequence and their inherent separation but later group into the genome sequence.
Nonsense mutation
Simple and short DNA sequence and their inherent separation but later group into the genome sequence.
Make a good reason why your leaving. Because you don't want to stay for a short program of figure skating.
long
Short term very high yield program
See related question
Title sequence
Nos is short for Numbers.