No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
2 Posted Topics
Re: this is one is more simple and better!! [CODE]import java.io.*; class insertion { public static void main() throws IOException { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br= new BufferedReader(isr); System.out.println("Please Enter the number of values"); int a=Integer.parseInt(br.readLine()); int age[]=new int[a]; int minelem=0, temp; System.out.println("Enter the VALUES"); for(int x=0;x<a;x++) { age[x]=Integer.parseInt(br.readLine()); … | |
Re: your Line 7 has a problem you have created an array which is a[500]; in which there is no VALUE and you are printing that instead of taking values so check that |
The End.