资 源 简 介
Java educations
Belajar java bareng kawan komunitas ELITE AM
```
UNKNOWN
//**************************************
// Name: Basic Java
// Description: ALL Basic Java Coding with output...
// it is necessary to understand the meaning of java...
// By: Admin
//
//
// Inputs:None
//
// Returns:None
//
// Assumes:None
//
// Side Effects:None
//**************************************
NO1-/PROGRAM FOR SORTING THE ARRAY/
import java.io.*;
class sort
{
public static void main(String args[])throws IOException
{
int i=0;
int j=0;
int temp;
int n[]=new int[11];
DataInputStream in=new DataInputStream(System.in);
System.out.println("
ENTER THE LIST=");
for(i=0;i<10;i++)
{
n[i]=Integer.parseInt(in.readLine());
}
for(i=1;i<10;i++)
{
temp=n[i];
j=i-1;
while((j>=0)&&(n[j]>temp))
{
n[j+1]=n[j];