thanks for the consent mateOk Submit your C# Code (Use Console application)

Your welcome machan. Submit and Feel the taste of positive Repthanks for the consent mate![]()

import java.util.Arrays;
import java.util.Scanner;
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int num = scan.nextInt();
int[] arr = new int[num];
for(int i =0;i<num;i++){
arr[i] = scan.nextInt();
}
System.out.println("");
Arrays.sort(arr);
for(int j:arr){
System.out.println(j);
}
}

import java.util.Arrays;
class numbers{
private final static int lines = 8;
private final static int numbers[] = new int[]{5,3,6,7,5,3,1,5};
public static void main(String[] args) {
int[] arr = new int[lines];
for(int i =0;i<lines;i++){
arr[i] = numbers[i];
}
Arrays.sort(arr);
for(int number:arr){
System.out.println(number);
}
}
}


you hard coded the numbers friend , its supposed to read from the user inputPHP:import java.util.Arrays; class numbers{ private final static int lines = 8; private final static int numbers[] = new int[]{5,3,6,7,5,3,1,5}; public static void main(String[] args) { int[] arr = new int[lines]; for(int i =0;i<lines;i++){ arr[i] = numbers[i]; } Arrays.sort(arr); for(int number:arr){ System.out.println(number); } } }
![]()
Yes it is. That's how it demonstrates the user inputs.you hard coded the numbers friend , its supposed to read from the user input
You don't have to use the Scanner class. All you have to do is grab the data and do the math. As long as you able to get the output exactly similar to the question you're done. 

pahala link ekata gihilla code eka dala ... thaman kemathi lenguage ekak select karagena ... inputs dala test karala balala ... eken thamange code ekata generate wena link eka share karanam hari
https://ideone.com/
Ungolfed:Make a 1000 Line of 'A' without using for,while,do..while..goto..
or the new line character(\n) and with the least amount of codes.
USE ONLY JAVA
example out put..
A
A
A
A
A
A
.
.
.
/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static void main (String[] args) throws java.lang.Exception
{
System.out.println(new String(new char[1000]).replace("\0", "A\n"));
}
}
import java.util.*;import java.lang.*;import java.io.*;class Ideone{public static void main (String[] args) throws java.lang.Exception{System.out.println(new String(new char[1000]).replace("\0", "A\n"));}}
public class Sort {
public static void main(String[] args) {
int[] arr = {5, 3, 6, 7, 5, 1, 3, 5 };
sortArray(arr);
printArray(arr);
}
private static void sortArray(int[] arr) {
for (int i = 0; i < arr.length; i++) {
int low = i;
for (int k = i + 1; k < arr.length; k++) {
if (arr[k] < arr[low])
low = k;
int temp = arr[i];
arr[i] = arr[low];
arr[low] = temp;
}
}
}
private static void printArray(int[] arr) {
for (int i = 0; i < arr.length; i++)
System.out.println(arr[i]);
}
}

Yes it is. That's how it demonstrates the user inputs.You don't have to use the Scanner class. All you have to do is grab the data and do the math. As long as you able to get the output exactly similar to the question you're done.
![]()

This isn't really good in performance machan. For 100 element array, you need 10000 iterations total.
, you can always get it from a file 