criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
    
        int first, second, third;
        if (a>=b && b>=c) 
            first = a; second = b; third = c;
        elseif (a>=b && b<=c && a<=c)
            first = c; second = a; third = b;
        elseif (a>=b && b<=c && a>=c)
            first = a; second = c; third = b;
        elseif (a<=b && b<=c)
            first = c; second = b; third = a;
        elseif (a<=b && b>=c && a>=c)
            first = b; second = a; third = b;
        elseif (a<=b && b>=c && c>=a)
            first = b; second = c; third = a;

        System.out.println(third + " " + second + " " + third);
    }
}

Compiler output:
Main.java:13: error: ';' expected
        elseif (a>=b && b<=c && a<=c)
                                     ^
Main.java:15: error: ';' expected
        elseif (a>=b && b<=c && a>=c)
                                     ^
Main.java:17: error: ';' expected
        elseif (a<=b && b<=c)
                             ^
Main.java:19: error: ';' expected
        elseif (a<=b && b>=c && a>=c)
                                     ^
Main.java:21: error: ';' expected
        elseif (a<=b && b>=c && c>=a)
                                     ^
5 errors
Language: Java

import java.util.*;
public class Main
{
	public static void main (String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		    int a = scanner.nextInt();
		    int b = scanner.nextInt();
		    int c = scanner.nextInt();
            if(a < b && c < a){
            	System.out.println(c a b);
            }else if(b < c){
            	System.out.println(a b c);
            }else{
            	System.out.println(a c b);
            }
    }
}

Compiler output:
Main.java:11: error: ')' or ',' expected
            	System.out.println(c a b);
            	                    ^
Main.java:11: error: ';' expected
            	System.out.println(c a b);
            	                        ^
Main.java:13: error: ')' or ',' expected
            	System.out.println(a b c);
            	                    ^
Main.java:13: error: ';' expected
            	System.out.println(a b c);
            	                        ^
Main.java:15: error: ')' or ',' expected
            	System.out.println(a c b);
            	                    ^
Main.java:15: error: ';' expected
            	System.out.println(a c b);
            	                        ^
6 errors
Language: Java

import java.util.*;
public class Main2{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int[] a = new int[3];
    a[0] = sc.nextInt();
    a[1] = sc.nextInt();
    a[2] = sc.nextInt();
    Arrays.sort(a);
    System.out.println(a[0]+" "+a[1]+" "+a[2]+"\n");
  }
}

Compiler output:
Main.java:2: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2{
       ^
1 error
Language: Java

import java.util.*;
public class Main
{
    public static void main (String[] args)
    {
        Scanner scanner = new Scanner(System.in);
    	int num[] = new int[3];
    	for(int i=0;i<3;i++){
    	num[i] = scanner.nextInt();
    	}
    	
    	Arrys.sort(num);
    	for(int i=0;i<3;i++){
    		if(i < 2){
    	System.out.plintf(num[i] + " ");
    		}else{
    			System.out.plintf(num[i]);
    		}
    	}
    }
}

Compiler output:
Main.java:12: error: cannot find symbol
    	Arrys.sort(num);
    	^
  symbol:   variable Arrys
  location: class Main
Main.java:15: error: cannot find symbol
    	System.out.plintf(num[i] + " ");
    	          ^
  symbol:   method plintf(String)
  location: variable out of type PrintStream
Main.java:17: error: cannot find symbol
    			System.out.plintf(num[i]);
    			          ^
  symbol:   method plintf(int)
  location: variable out of type PrintStream
3 errors
Language: Java

import java.util.*;
public class Main
{
    public static void main (String[] args)
    {
        Scanner scanner = new Scanner(System.in);
    	int num[] = new int[3];
    	for(int i=0;i<3;i++){
    	num[i] = scanner.nextInt();
    	}
    	
    	Arrays.sort(num);
    	for(int i=0;i<3;i++){
    		if(i < 2){
    	System.out.plintf(num[i] + " ");
    		}else{
    			System.out.plintf(num[i]);
    		}
    	}
    }
}

Compiler output:
Main.java:15: error: cannot find symbol
    	System.out.plintf(num[i] + " ");
    	          ^
  symbol:   method plintf(String)
  location: variable out of type PrintStream
Main.java:17: error: cannot find symbol
    			System.out.plintf(num[i]);
    			          ^
  symbol:   method plintf(int)
  location: variable out of type PrintStream
2 errors
Language: Java

import java.util.*;
public class Main
{
    public static void main (String[] args)
    {
        Scanner scanner = new Scanner(System.in);
    	int num[] = new int[3];
    	for(int i=0;i<3;i++){
    	num[i] = scanner.nextInt();
    	}
    	
    	Arrays.sort(num);
    	for(int i=0;i<3;i++){
    		if(i < 2){
    	System.out.plintln(num[i] + " ");
    		}else{
    			System.out.plintf(num[i]);
    		}
    	}
    }
}

Compiler output:
Main.java:15: error: cannot find symbol
    	System.out.plintln(num[i] + " ");
    	          ^
  symbol:   method plintln(String)
  location: variable out of type PrintStream
Main.java:17: error: cannot find symbol
    			System.out.plintf(num[i]);
    			          ^
  symbol:   method plintf(int)
  location: variable out of type PrintStream
2 errors
Language: Java

import java.util.*;
public class Main
{
    public static void main (String[] args)
    {
        Scanner scanner = new Scanner(System.in);
    	int num[] = new int[3];
    	for(int i=0;i<3;i++){
    	num[i] = scanner.nextInt();
    	}
    	
    	Arrays.sort(num);
    	for(int i=0;i<3;i++){
    		if(i < 2){
    	System.out.plintln(num[i]);
    			System.out.plintln(" ");
    		}else{
    			System.out.plintf(num[i]);
    		}
    	}
    }
}

Compiler output:
Main.java:15: error: cannot find symbol
    	System.out.plintln(num[i]);
    	          ^
  symbol:   method plintln(int)
  location: variable out of type PrintStream
Main.java:16: error: cannot find symbol
    			System.out.plintln(" ");
    			          ^
  symbol:   method plintln(String)
  location: variable out of type PrintStream
Main.java:18: error: cannot find symbol
    			System.out.plintf(num[i]);
    			          ^
  symbol:   method plintf(int)
  location: variable out of type PrintStream
3 errors
Language: Java

import java.util.*;
public class Main
{
    public static void main (String[] args)
    {
        Scanner scanner = new Scanner(System.in);
    	int num[] = new int[3];
    	for(int i=0;i<3;i++){
    	num[i] = scanner.nextInt();
    	}
    	
    	Arrays.sort(num);
    	for(int i=0;i<3;i++){
    		if(i < 2){
    	System.out.println(num[i]);
    			System.out.println(" ");
    		}else{
    			System.out.printf(num[i]);
    		}
    	}
    }
}

Compiler output:
Main.java:18: error: no suitable method found for printf(int)
    			System.out.printf(num[i]);
    			          ^
    method PrintStream.printf(String,Object...) is not applicable
      (argument mismatch; int cannot be converted to String)
    method PrintStream.printf(Locale,String,Object...) is not applicable
      (argument mismatch; int cannot be converted to Locale)
1 error
Language: Java

import java.util.*;
public class Main
{
    public static void main (String[] args)
    {
        Scanner scanner = new Scanner(System.in);
    	int num[] = new int[3];
    	for(int i=0;i<3;i++){
    	num[i] = scanner.nextInt();
    	}
    	
    	Arrays.sort(num);
    	for(int i=0;i<3;i++){
    		if(i < 2){
    	System.out.println(num[i] + " ");
    		}else{
    			System.out.printf(num[i]);
    		}
    	}
    }
}

Compiler output:
Main.java:17: error: no suitable method found for printf(int)
    			System.out.printf(num[i]);
    			          ^
    method PrintStream.printf(String,Object...) is not applicable
      (argument mismatch; int cannot be converted to String)
    method PrintStream.printf(Locale,String,Object...) is not applicable
      (argument mismatch; int cannot be converted to Locale)
1 error
Language: Java

import java.util.*;
public class Main
{
    public static void main (String[] args)
    {
        Scanner scanner = new Scanner(System.in);
    	int num[] = new int[3];
    	for(int i=0;i<3;i++){
    	num[i] = scanner.nextInt();
    	}
    	
    	Arrays.sort(num);
    	for(int i=0;i<3;i++){
    		if(i < 2){
    	System.out.prints("%d ", num[i]);
    		}else{
    			System.out.printf(num[i]);
    		}
    	}
    }
}

Compiler output:
Main.java:15: error: cannot find symbol
    	System.out.prints("%d ", num[i]);
    	          ^
  symbol:   method prints(String,int)
  location: variable out of type PrintStream
Main.java:17: error: no suitable method found for printf(int)
    			System.out.printf(num[i]);
    			          ^
    method PrintStream.printf(String,Object...) is not applicable
      (argument mismatch; int cannot be converted to String)
    method PrintStream.printf(Locale,String,Object...) is not applicable
      (argument mismatch; int cannot be converted to Locale)
2 errors
Language: Java

import java.util.*;
public class Main
{
    public static void main (String[] args)
    {
        Scanner scanner = new Scanner(System.in);
    	int num[] = new int[3];
    	for(int i=0;i<3;i++){
    	num[i] = scanner.nextInt();
    	}
    	
    	Arrays.sort(num);
    	for(int i=0;i<3;i++){
    		if(i < 2){
    			System.out.printl(num[i]);
    			System.out.printl(" ");
    		}else{
    			System.out.printf(num[i]);
    		}
    	}
    }
}

Compiler output:
Main.java:15: error: cannot find symbol
    			System.out.printl(num[i]);
    			          ^
  symbol:   method printl(int)
  location: variable out of type PrintStream
Main.java:16: error: cannot find symbol
    			System.out.printl(" ");
    			          ^
  symbol:   method printl(String)
  location: variable out of type PrintStream
Main.java:18: error: no suitable method found for printf(int)
    			System.out.printf(num[i]);
    			          ^
    method PrintStream.printf(String,Object...) is not applicable
      (argument mismatch; int cannot be converted to String)
    method PrintStream.printf(Locale,String,Object...) is not applicable
      (argument mismatch; int cannot be converted to Locale)
3 errors
Language: Java

import java.util.*;
public class Main
{
    public static void main (String[] args)
    {
        Scanner scanner = new Scanner(System.in);
    	int num[] = new int[3];
    	for(int i=0;i<3;i++){
    	num[i] = scanner.nextInt();
    	}
    	
    	Arrays.sort(num);
    	for(int i=0;i<3;i++){
    		if(i < 2){
    			System.out.println(num[i]);
    			System.out.println(" ");
    		}else{
    			System.out.printf(num[i]);
    		}
    	}
    }
}

Compiler output:
Main.java:18: error: no suitable method found for printf(int)
    			System.out.printf(num[i]);
    			          ^
    method PrintStream.printf(String,Object...) is not applicable
      (argument mismatch; int cannot be converted to String)
    method PrintStream.printf(Locale,String,Object...) is not applicable
      (argument mismatch; int cannot be converted to Locale)
1 error
Language: Java

import java.util.*;
public class Main
{
    public static void main (String[] args)
    {
        Scanner scanner = new Scanner(System.in);
    	int num[] = new int[3];
    	for(int i=0;i<3;i++){
    	num[i] = scanner.nextInt();
    	}
    	
    	Arrays.sort(num);
    	for(int i=0;i<3;i++){
    		if(i < 2){
    			System.out.printn(num[i]);
    			System.out.printn(" ");
    		}else{
    			System.out.printn(num[i]);
    		}
    	}
    }
}

Compiler output:
Main.java:15: error: cannot find symbol
    			System.out.printn(num[i]);
    			          ^
  symbol:   method printn(int)
  location: variable out of type PrintStream
Main.java:16: error: cannot find symbol
    			System.out.printn(" ");
    			          ^
  symbol:   method printn(String)
  location: variable out of type PrintStream
Main.java:18: error: cannot find symbol
    			System.out.printn(num[i]);
    			          ^
  symbol:   method printn(int)
  location: variable out of type PrintStream
3 errors
Language: Java

import java.util.Scanner;
public class Main { 
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        int temp1, temp2, temp3;
        if(a > b){
            temp1 = a;
            a = b;
            b = temp1;
        }
        if(b > c){
            temp2 = b;
            b = c;
            c = temp2;
        }
        
        System.out.println(a + "" + b + "" + c + ""):
    }
}

Compiler output:
Main.java:20: error: ';' expected
        System.out.println(a + "" + b + "" + c + ""):
                                                    ^
1 error
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    List<Integer> targetList = new ArrayList<Integer>();

    createNumsList(targetList);
    improvedBubbleSort(targetList);

    printResult(targetList);
  }

  private static void createNumsList(List<Integer> targetList) {
    Scanner sc = new Scanner(System.in);
    for (int i = 0; i < 3; i++) {
      targetList.add(sc.nextInt());
    }
  }

  private static void bubbleSort(List<Integer> targetList) {
    boolean swapped = false;
    for (int i = 0; i < 3; i++) {
      for (int j = i+1; j < 3; j++) {
        if (targetList.get(i) > targetList.get(j)) {
          swap(targetList, i, j);
        }
      }
    }
  }

  private static void swap(List<Integer> targetList, int x, int y) {
    int temp = targetList.get(x);
    targetList.set(x, targetList.get(y));
    targetList.set(y, temp);
  }

  private static void printResult(List<Integer> targetList) {
    int sizeOfList = targetList.size();
    for (int i = 0; i < sizeOfList; i++) {
      System.out.print(targetList.get(i));
      if (i != sizeOfList-1) {
        System.out.print(" ");
      }
    }
    System.out.println();
  }
}

Compiler output:
Main.java:8: error: cannot find symbol
    improvedBubbleSort(targetList);
    ^
  symbol:   method improvedBubbleSort(List<Integer>)
  location: class Main
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
 
public class Main{
  public static void main(String[] args) {
    try {
      BufferedReader stdReader =
        new BufferedReader(new InputStreamReader(System.in));
      String line0;
      line0 = stdReader.readLine();
 
      String Array[]=line0.split(" ");
      int a =Integer.parseInt(Array[0]);
      int b =Integer.parseInt(Array[1]);
      int c =Integer.parseInt(Array[2]);
      int abc{a,b,c};

      for(int i=abc.length;0;i--){
      int x=1;

      if(abc[i]<abc[i-x]){
       abc[i]=abc[i-x];
       abc[i-x]=abc[i];      

      }
       x++;
      } 
System.out.println(abc[0]+" "+abc[1] +" "+abc[2]);       
      stdReader.close();
    } catch (Exception e) {
      e.getStackTrace();
      /*??????´??????0??????*/
      System.exit(0); 
    }
  }
}

Compiler output:
Main.java:16: error: ';' expected
      int abc{a,b,c};
             ^
Main.java:16: error: not a statement
      int abc{a,b,c};
              ^
Main.java:16: error: ';' expected
      int abc{a,b,c};
               ^
Main.java:16: error: not a statement
      int abc{a,b,c};
                ^
Main.java:16: error: ';' expected
      int abc{a,b,c};
                 ^
Main.java:16: error: not a statement
      int abc{a,b,c};
                  ^
Main.java:16: error: ';' expected
      int abc{a,b,c};
                   ^
7 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
 
public class Main{
  public static void main(String[] args) {
    try {
      BufferedReader stdReader =
        new BufferedReader(new InputStreamReader(System.in));
      String line0;
      line0 = stdReader.readLine();
 
      String Array[]=line0.split(" ");
      int a =Integer.parseInt(Array[0]);
      int b =Integer.parseInt(Array[1]);
      int c =Integer.parseInt(Array[2]);
      int abc[]={a,b,c};
      if(abc[1]<abc[0]){
       abc[0]=abc[1];
       abc[1]=abc[0];      
      }
       

      if(abc[2]<abc[1]){
       abc[1]=abc[2];
       abc[2]=abc[1];      
      }

      if(abc[1]<abc[0]){
       abc[0]=abc[1];
       abc[1]=abc[0];      
      }
      } 
System.out.println(abc[0]+" "+abc[1] +" "+abc[2]);       
      stdReader.close();
    } catch (Exception e) {
      e.getStackTrace();
      /*??????´??????0??????*/
      System.exit(0); 
    }
  }
}

Compiler output:
Main.java:6: error: 'try' without 'catch', 'finally' or resource declarations
    try {
    ^
Main.java:35: error: illegal start of type
    } catch (Exception e) {
      ^
Main.java:35: error: ';' expected
    } catch (Exception e) {
                        ^
Main.java:41: error: class, interface, enum, or record expected
}
^
4 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {
    try {
      BufferedReader stdReader =
        new BufferedReader(new InputStreamReader(System.in));
      String line0;
      line0 = stdReader.readLine();
 
      String Array[]=line0.split(" ");
      int a =Integer.parseInt(Array[0]);
      int b =Integer.parseInt(Array[1]);
      int c =Integer.parseInt(Array[2]);
      int abc[]={a,b,c};
      int ans[2];
      if(abc[1]<abc[0]){
       ans[0]=abc[1];
       ans[1]=abc[0];      
      }
       

      if(abc[2]<abc[1]){
       ans[1]=abc[2];
       ans[2]=abc[1];      
      }

      if(abc[1]<abc[0]){
       ans[0]=abc[1];
       ans[1]=abc[0];      
      }
      
System.out.println(ans[0]+" "+ans[1] +" "+ans[2]);       
      stdReader.close();
    }catch(

	Exception e)
	{
		e.getStackTrace();
		/* ??????´??????0?????? */
		System.exit(0);
	}
}}

Compiler output:
Main.java:17: error: ']' expected
      int ans[2];
              ^
1 error
Language: Java

import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int[] integar=new int[3];
for(int i=0; i<integar.length; i++){
integar[i]=scan.nextInt();
}
for(int j=0; j<integar.length; i++){
for(int k=integar.length-1; k>j; k--){
if(integar[k]<integar[k-1]){
int temp=integar[k];
integar[k]=integar[k-1];
integar[k-1]=temp;
}
}
}
System.out.println(integar[0]+""+integar[1]+""+integar[2]);
}
}  

Compiler output:
Main.java:9: error: cannot find symbol
for(int j=0; j<integar.length; i++){
                               ^
  symbol:   variable i
  location: class Main
1 error
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
    int Array[] = new int[3];
    Scanner InData = new Scanner(System.in);
    Array[0] = InData.nextInt();
    Array[1] = InData.nextInt();
    Array[2] = InData.nextInt();
    int buffer;
    for(int n = 0; n<2;n++){
        for(int j = 0;j<2-n;j++){
            if(Array[j]>Array[j+1]){
            buffer = Array[j];
            Array[j]=Array[j+1];
            Array[j+1]=buffer;
            }
        }

    }
        System.out.print(Array[0]+" "+Array[1]+" "+Array[2]);
    }
  
    }
}

Compiler output:
Main.java:24: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

import java.util.Scanner;
import java.util.Arrays;

class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int[] numbers = new int[3];
		numbers[0] = scanner.intNext();
		numbers[1] = scanner.intNext();
		numbers[2] = scanner.intNext();

		Arrays.sort(numbers);
		
		System.out.println(numbers[0] + " " + numbers[1] + " " + numbers[2]);
	}
}

Compiler output:
Main.java:8: error: cannot find symbol
		numbers[0] = scanner.intNext();
		                    ^
  symbol:   method intNext()
  location: variable scanner of type Scanner
Main.java:9: error: cannot find symbol
		numbers[1] = scanner.intNext();
		                    ^
  symbol:   method intNext()
  location: variable scanner of type Scanner
Main.java:10: error: cannot find symbol
		numbers[2] = scanner.intNext();
		                    ^
  symbol:   method intNext()
  location: variable scanner of type Scanner
3 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Sorting_Three_Numbers_7 {


		public static void main(String[] args) {
			BufferedReader input = new BufferedReader(new InputStreamReader(System.in));


			  try{

				  String ab = input.readLine();
				  String[] strAry = ab.split(" ");

				  //????????????????????\??????????????°????????????????????§???????????????
				  int a = Integer.parseInt(strAry[0]);
				  //??????strAry??????????????????????????????????????????
				  int b = Integer.parseInt(strAry[1]);
				  int c = Integer.parseInt(strAry[2]);
				  int num =0;
				  //??????????????°????????????????????§strAry?????????????????????????´?

				  /*if(a>b){
					num=a;
					a=b;
					b=num;
				  }else if(b>c){
					  num=b;
					  b=c;
					  c=num;
				  }else if(a>b){
					  num=a;
					  a=b;
					  b=num;
					 //???????????¨???????????????????????§?????????????????????????????¶????????????
				  }*/
				  if(a>b){
					num=a;
					a=b;
					b=num;
				      if(b>c){
					     num=b;
					     b=c;
					     c=num;
				              if(a>b){
					           num=a;
					           a=b;
					           b=num;

				              }
				         }
				  }


				System.out.println(a+" "+b+" "+c);

			    }catch(IOException e) {   System.out.println("Exception : " + e);
			    }

		}
}

Compiler output:
Main.java:5: error: class Sorting_Three_Numbers_7 is public, should be declared in a file named Sorting_Three_Numbers_7.java
public class Sorting_Three_Numbers_7 {
       ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {


		public static void main(String[] args) {
			BufferedReader input = new BufferedReader(new InputStreamReader(System.in));


			  try{

				  String ab = input.readLine();
				  String[] strAry = ab.split(" ");

				 				  int a = Integer.parseInt(strAry[0]);
				  
				  int b = Integer.parseInt(strAry[1]);
				  int c = Integer.parseInt(strAry[2]);
				  int num =0;
				
									num=a;
					a=b;
					b=num;
				      if(b>c){
					     num=b;
					     b=c;
					     c=num;
				              if(a>b){
					           num=a;
					           a=b;
					           b=num;

				              }
				         }
				  }


				System.out.println(a+" "+b+" "+c);

			    }catch(IOException e) {   System.out.println("Exception : " + e);
			    }

		}
}

Compiler output:
Main.java:12: error: 'try' without 'catch', 'finally' or resource declarations
			  try{
			  ^
Main.java:42: error: illegal start of type
			    }catch(IOException e) {   System.out.println("Exception : " + e);
			     ^
Main.java:42: error: ';' expected
			    }catch(IOException e) {   System.out.println("Exception : " + e);
			                        ^
Main.java:46: error: class, interface, enum, or record expected
}
^
4 errors
Language: Java

import java.util.Arrays;
import java.util.Scanner;

public class SortingAscending {

	public static void main(String[] args) {
		int[] numbers;
		Scanner scanner = new Scanner(System.in);
		String num = scanner.nextLine();
		if (!"".equals(num.trim())) {
			String[] input = num.split(" ");
			if (input.length == 3) {
				int num1 = (Integer.parseInt(input[0]));
				int num2 = (Integer.parseInt(input[1]));
				int num3 = (Integer.parseInt(input[2]));
				if (num1>0 && num1<10001 && num2>0 && num2<10001 && num3>0 && num3<10001) {
					numbers = new int[input.length];
					for (int i = 0; i < input.length; i++) {
						numbers[i] = Integer.parseInt(input[i]);
					}
					Arrays.sort(numbers);
					System.out.println(Arrays.toString(numbers));
				}
			}
		}
	}
}

Compiler output:
Main.java:4: error: class SortingAscending is public, should be declared in a file named SortingAscending.java
public class SortingAscending {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main_C {
	public static void main(String[] args){
		@SuppressWarnings("resource")
		Scanner stdin = new Scanner(System.in);
		
		int a = stdin.nextInt();
		int b = stdin.nextInt();
		int c = stdin.nextInt();
		
		for(int i = 0; i < 3; i++) {
			if(a < b) {
				int aa = a;
				a = b;
				b = aa;
			} else if (a > c) {
				int aa = a; 
				a = c;
				c = aa;
			} else if (b > c) {
				int aaa = b;
				b = c;
				c = aaa;
			}
		}
		
		
		System.out.print(a + " " + b + " " + c);
	}

}

Compiler output:
Main.java:3: error: class Main_C is public, should be declared in a file named Main_C.java
public class Main_C {
       ^
1 error
Language: Java

import java.util.Scanner;

public class SortingThreeNumber {
	public static void main(String[] args) {
		Scanner stdin=new Scanner(System.in);
		 int number1=stdin.nextInt();
		 int number2=stdin.nextInt();
	    int number3=stdin.nextInt();
	    if(number1>=1&&number1<=10000&&number2>=1&&number2<=10000&&number3>=1&&number3<=10000) {
	    if ((number1>number2 &&number1>number3))
        {if(number2>number3){
                System.out.print(number3 + " " + number2 + " " + number1);
            }else System.out.print(number2 + " " + number3 + " " + number1);}
        else if ((number2>number1&&number2 >number3)){
            if(number1> number3){
                System.out.print(number3 + " " + number1 + " " + number1);}
            else{
                System.out.print(number1 + " " + number3 + " " + number2);
                }}
        else if ((number3 > number1 && number3 > number2)){
            if(number1 > number2){
                System.out.print(number2 + " " + number1 + " " + number3); }
            else
                System.out.print(number1 + " " + number2 + " " + number3);
            }
	    }
	    }
	}

Compiler output:
Main.java:3: error: class SortingThreeNumber is public, should be declared in a file named SortingThreeNumber.java
public class SortingThreeNumber {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main_C {
	public static void main(String[] args){
		@SuppressWarnings("resource")
		Scanner stdin = new Scanner(System.in);
		
		int a = stdin.nextInt();
		int b = stdin.nextInt();
		int c = stdin.nextInt();
		int min = 0;
		int max = 10000;
		int temp = 0;
	
		while (temp > min && temp < max) {
			
			for(int i = 0; i < 3 ; i++) {
				if(b < a){
					temp = a;
					a = b;
					b = temp;
				} 
			
				if (c < b) {
					temp = b; 
					b = c;
					c = temp;
				}  
			}
		}
		
		System.out.print(a + " " + b + " " + c);
	}

}

Compiler output:
Main.java:3: error: class Main_C is public, should be declared in a file named Main_C.java
public class Main_C {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main_C {
	public static void main(String[] args){
		@SuppressWarnings("resource")
		Scanner stdin = new Scanner(System.in);
		
		int a = stdin.nextInt();
		int b = stdin.nextInt();
		int c = stdin.nextInt();
		
		int temp;
			
			for(int i = 0; i < 3 ; i++) {
				if(b < a){
					temp = a;
					a = b;
					b = temp;
				} 
			
				if (c < b) {
					temp = b; 
					b = c;
					c = temp;
				}  
			}
		
		
		System.out.print(a + " " + b + " " + c);
	}

}

Compiler output:
Main.java:3: error: class Main_C is public, should be declared in a file named Main_C.java
public class Main_C {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
            Scanner stdin = new Scanner(System.in);
            int number1 = stdin.nextInt();
            int number2 = stdin.nextInt();
            int number3 = stdin.nextInt();
            if ((number1 > number2 && number1 > number3)) {
                    if (number2 > number3) {
                            System.out.print(number3+ " " + number2 + " " + number1);
                    } else
                            System.out.print(number2+ " " + number3 + " " + number1);
            } else if ((number2 > number1 && number2 > number3)) {
                    if (number1 > number3) {
                            System.out.print(number3+ " " + number1 + " " + number1);
                    } else {
                            System.out.print(number1+ " " + number3 + " " + number2);
                    }
            } else if ((number3>number1&& number3>number2)) {
                    if (number1>number2) {
                            System.out.print(number2+ " " + number1 + " " + number3);
                    } else
                            System.out.print(number1 + " " + number2 + " " + number3);
            }
    }

Compiler output:
Main.java:27: error: reached end of file while parsing
    }
     ^
1 error
Language: Java

import java.util.Arrays;
import java.util.Scanner;
public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int num1 = scan.nextInt();
		int num2 = scan.nextInt();
		int num3 = scan.nextInt();
		if (num1 >= 1 && num1 <= 10000 && num2 >= 1 && num2 <= 10000 && num3 >= 1 && num3 <= 10000){
			int[] sortNum = new int[3];
			sortNum[0] = num1;
			sortNum[1] = num2;
			sortNum[2] = num3;
			Arrays.sort(sortNum);
			for (int out : sortNum) {
				System.out.print(out + " ");
			}
		}

Compiler output:
Main.java:19: error: reached end of file while parsing
		}
		 ^
1 error
Language: Java

import java.util.Arrays;
import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String input = scan.nextLine();
		String[] in = input.split(" ");
		int num1 = Integer.parseInt(in[0]);
		int num2 = Integer.parseInt(in[1]);
		int num3 = Integer.parseInt(in[2]);
		if (num1 >= 1 && num1 <= 10000 && num2 >= 1 && num2 <= 10000 && num3 >= 1 && num3 <= 10000){
			int[] sortNum = new int[3];
			sortNum[0] = num1;
			sortNum[1] = num2;
			sortNum[2] = num3;
			Arrays.sort(sortNum);
			for (int out : sortNum) {
				System.out.print(out + " ");
			}
		}

Compiler output:
Main.java:22: error: reached end of file while parsing
		}
		 ^
1 error
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int[] num = new int[3];
		
		num[0]=s.nextInt();
		num[1]=s.nextInt();
		num[2]=s.nextInt();
		int temp;
		if(num[0]>=1 && num[0]<=10000 && num[1]>=1 && num[1]<=10000 && num[2]>=1 && num[2]<=10000) {
		for(int i = 0;i<num.length;i++) {
			for(int j = 1;j<num.length-i;j++) {
				if(num[j-1]>num[j]) {
					temp=num[j-1];
					num[j-1]=num[j];
					num[j]=temp;
				}
			}
		}
		
		System.out.print(num[0]);
		System.out.print(" ");
		System.out.print(num[1]);
		System.out.print(" ");
		System.out.print(num[2]);

	}
	}

}

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner s = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner s = new Scanner(System.in);
		                ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java


import java.util.Scanner;

public class SortingThreeNumber {
	public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);

		int value[] = new int[3];

		int temp = 0, i = 0, j = 0;

		for (i = 0; i < 3; i++)

			value[i] = stdin.nextInt();

		for (i = 0; i < 3; i++) {

			for (j = i; j < 3; j++) {

				if (value[i] > value[j]) {

					temp = value[i];

					value[i] = value[j];

					value[j] = temp;

				}

			}

		}
		System.out.print(value[0]);

		System.out.print(" ");

		System.out.print(value[1]);

		System.out.print(" ");

		System.out.println(value[2]);
	}
}

Compiler output:
Main.java:4: error: class SortingThreeNumber is public, should be declared in a file named SortingThreeNumber.java
public class SortingThreeNumber {
       ^
1 error
Language: Java

import java.util.*;
import java.io.IOException;

public class Main {
    public static void main(String[] args) throws IOException{
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        for(int i=0;i<3; i++){
            int x;
            if(a>b){
                x=a;
                a=b;
                b=x;
            }
            if(b>c){
                x=b;
                b=c;
                c=x;
            }
        }
        System.out.println(a+" "+b+" "+c);

Compiler output:
Main.java:23: error: reached end of file while parsing
        System.out.println(a+" "+b+" "+c);
                                          ^
1 error
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a;
		int b;
		int c;
		char delimeter = ' '
		List<Integer> list = new ArrayList<>();

		while(sc.hasNextInt()) {
			list.add(sc.nextInt());
		}

		Collections.sort(list);

		a = list.get(0);
		b = list.get(1);
		c = list.get(2);

		System.out.println(a + delimeter + b + delimeter + c);
	}
}

Compiler output:
Main.java:9: error: ';' expected
		char delimeter = ' '
		                    ^
1 error
Language: Java

import java.util.*;

public Main{
	public static void main(String args[]){
		Scanner scanner = new Scanner(System.in);
		String[] input = scanner.nextLine.split(" ");
		int[] in;
		for(int i=0;i<input.length;i++){
			in = Integer.parseInt(input[i]);
		}
		int store;
		while(in[0]<in[1] &&in[1]<in[2]){
			if(in[0]>in[1]){
				store=in[0];
				in[0]=in[1];
				in[1]=store;
			}
			if(in[1]>in[2]){
				store=in[1];
				in[1]=in[2];
				in[2]=store;
			}
		}
		System.out.println(in[0]+" "+in[1]+" "+in[2]);
	}
}

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
public Main{
       ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String args[]){
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:26: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.*;

public class Main{
	public static void main(String args[]){
		Scanner scanner = new Scanner(System.in);
		String[] input = scanner.nextLine.split(" ");
		int[] in;
		for(int i=0;i<input.length;i++){
			in = Integer.parseInt(input[i]);
		}
		int store;
		while(in[0]<in[1] &&in[1]<in[2]){
			if(in[0]>in[1]){
				store=in[0];
				in[0]=in[1];
				in[1]=store;
			}
			if(in[1]>in[2]){
				store=in[1];
				in[1]=in[2];
				in[2]=store;
			}
		}
		System.out.println(in[0]+" "+in[1]+" "+in[2]);
	}
}

Compiler output:
Main.java:6: error: cannot find symbol
		String[] input = scanner.nextLine.split(" ");
		                        ^
  symbol:   variable nextLine
  location: variable scanner of type Scanner
Main.java:9: error: incompatible types: int cannot be converted to int[]
			in = Integer.parseInt(input[i]);
			                     ^
2 errors
Language: Java

import java.util.*;

public class Main{
	public static void main(String args[]){
		Scanner scanner = new Scanner(System.in);
		String input = scanner.nextLine
                String[] input1=scanner.split(" ");
		int[] in;
		for(int i=0;i<input.length;i++){
			in[i] = Integer.parseInt(input1[i]);
		}
		int store;
		while(in[0]<in[1] &&in[1]<in[2]){
			if(in[0]>in[1]){
				store=in[0];
				in[0]=in[1];
				in[1]=store;
			}
			if(in[1]>in[2]){
				store=in[1];
				in[1]=in[2];
				in[2]=store;
			}
		}
		System.out.println(in[0]+" "+in[1]+" "+in[2]);
	}
}

Compiler output:
Main.java:6: error: ';' expected
		String input = scanner.nextLine
		                               ^
1 error
Language: Java

public class Main{
public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine;
String[] input1=scanner.split(" ");
int[] in;
for(int i=0;i<input.length;i++){
in[i] = Integer.parseInt(input1[i]);
}
int store;
while(in[0]<in[1] &&in[1]<in[2]){
if(in[0]>in[1]){
store=in[0];
in[0]=in[1];
in[1]=store;
}
if(in[1]>in[2]){
store=in[1];
in[1]=in[2];
in[2]=store;
}
}
System.out.println(in[0]+" "+in[1]+" "+in[2]);
}
}

Compiler output:
Main.java:3: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
                      ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
for(int i=0;i<input.length;i++){
                   ^
  symbol:   variable length
  location: variable input of type String
3 errors
Language: Java

import java.util.*;

public class Main{
public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine;
String[] input1=scanner.split(" ");
int[] in;
for(int i=0;i<input.length;i++){
in[i] = Integer.parseInt(input1[i]);
}
int store;
while(in[0]<in[1] &&in[1]<in[2]){
if(in[0]>in[1]){
store=in[0];
in[0]=in[1];
in[1]=store;
}
if(in[1]>in[2]){
store=in[1];
in[1]=in[2];
in[2]=store;
}
}
System.out.println(in[0]+" "+in[1]+" "+in[2]);
}
}

Compiler output:
Main.java:6: error: cannot find symbol
String input = scanner.nextLine;
                      ^
  symbol:   variable nextLine
  location: variable scanner of type Scanner
Main.java:7: error: cannot find symbol
String[] input1=scanner.split(" ");
                       ^
  symbol:   method split(String)
  location: variable scanner of type Scanner
Main.java:9: error: cannot find symbol
for(int i=0;i<input.length;i++){
                   ^
  symbol:   variable length
  location: variable input of type String
3 errors
Language: Java

import java.util.*;

public class Main{
public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
String[] input1=scanner.split(" ");
int[] in;
for(int i=0;i<input.length;i++){
in[i] = Integer.parseInt(input1[i]);
}
int store;
while(in[0]<in[1] &&in[1]<in[2]){
if(in[0]>in[1]){
store=in[0];
in[0]=in[1];
in[1]=store;
}
if(in[1]>in[2]){
store=in[1];
in[1]=in[2];
in[2]=store;
}
}
System.out.println(in[0]+" "+in[1]+" "+in[2]);
}
}

Compiler output:
Main.java:7: error: cannot find symbol
String[] input1=scanner.split(" ");
                       ^
  symbol:   method split(String)
  location: variable scanner of type Scanner
Main.java:9: error: cannot find symbol
for(int i=0;i<input.length;i++){
                   ^
  symbol:   variable length
  location: variable input of type String
2 errors
Language: Java

import java.util.*;

public class Main{
public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
String[] input1=input.split(" ");
int[] in;
for(int i=0;i<input.length;i++){
in[i] = Integer.parseInt(input1[i]);
}
int store;
while(in[0]<in[1] &&in[1]<in[2]){
if(in[0]>in[1]){
store=in[0];
in[0]=in[1];
in[1]=store;
}
if(in[1]>in[2]){
store=in[1];
in[1]=in[2];
in[2]=store;
}
}
System.out.println(in[0]+" "+in[1]+" "+in[2]);
}
}

Compiler output:
Main.java:9: error: cannot find symbol
for(int i=0;i<input.length;i++){
                   ^
  symbol:   variable length
  location: variable input of type String
1 error
Language: Java

import java.util.*;
??
public class Main{
public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
String[] input1=input.split(" ");
int[] in;
for(int i=0;i<input1.length;i++){
in[i] = Integer.parseInt(input1[i]);
}
int store;
while(in[0]<in[1] &&in[1]<in[2]){
if(in[0]>in[1]){
store=in[0];
in[0]=in[1];
in[1]=store;
}
if(in[1]>in[2]){
store=in[1];
in[1]=in[2];
in[2]=store;
}
}
System.out.println(in[0]+" "+in[1]+" "+in[2]);
}
}

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
??
^
1 error
Language: Java

import java.util.*;

public class Main{
public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
String[] input1=input.split(" ");
int[] in;
for(int i=0;i<input1.length;i++){
in[i] = Integer.parseInt(input1[i]);
}
int store;
while(in[0]<in[1] &&in[1]<in[2]){
if(in[0]>in[1]){
store=in[0];
in[0]=in[1];
in[1]=store;
}
if(in[1]>in[2]){
store=in[1];
in[1]=in[2];
in[2]=store;
}
}
System.out.println(in[0]+" "+in[1]+" "+in[2]);
}
}

Compiler output:
Main.java:10: error: variable in might not have been initialized
in[i] = Integer.parseInt(input1[i]);
^
Main.java:13: error: variable in might not have been initialized
while(in[0]<in[1] &&in[1]<in[2]){
      ^
2 errors
Language: Java

import java.util.*;

public class Main{
public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
String[] input1=input.split(" ");
int[] in=0,0,0;
for(int i=0;i<input1.length;i++){
in[i] = Integer.parseInt(input1[i]);
}
int store;
while(in[0]<in[1] &&in[1]<in[2]){
if(in[0]>in[1]){
store=in[0];
in[0]=in[1];
in[1]=store;
}
if(in[1]>in[2]){
store=in[1];
in[1]=in[2];
in[2]=store;
}
}
System.out.println(in[0]+" "+in[1]+" "+in[2]);
}
}

Compiler output:
Main.java:8: error: <identifier> expected
int[] in=0,0,0;
           ^
1 error
Language: Java

import java.uitl.*;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		List<integer> input = new ArrayList<Integer>();
		while(sc.hasNextInt){
			input.add(sc.nextInt);
		}
		while(input.get(0)<input.get(1) || input.get(1)<input.get(2)){
			int store;
			if(input.get(0)>input.get(1)){
				store=input.get(0);
				input.set(0,input.get(1));
				input.set(1,store);
			}
			if(input.get(1)>input.get(2)){
				store=input.get(1);
				input.set(1,input.get(2));
				input.set(2,store);
			}
		}
		System.out.println(input.get(0)+" "+input.get(1)+" "+input.get(2));
	}
}

Compiler output:
Main.java:1: error: package java.uitl does not exist
import java.uitl.*;
^
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		List<integer> input = new ArrayList<Integer>();
		^
  symbol:   class List
  location: class Main
Main.java:6: error: cannot find symbol
		List<integer> input = new ArrayList<Integer>();
		     ^
  symbol:   class integer
  location: class Main
Main.java:6: error: cannot find symbol
		List<integer> input = new ArrayList<Integer>();
		                          ^
  symbol:   class ArrayList
  location: class Main
6 errors
Language: Java

import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		List<integer> input = new ArrayList<Integer>();
		while(sc.hasNextInt){
			input.add(sc.nextInt);
		}
		while(input.get(0)<input.get(1) || input.get(1)<input.get(2)){
			int store;
			if(input.get(0)>input.get(1)){
				store=input.get(0);
				input.set(0,input.get(1));
				input.set(1,store);
			}
			if(input.get(1)>input.get(2)){
				store=input.get(1);
				input.set(1,input.get(2));
				input.set(2,store);
			}
		}
		System.out.println(input.get(0)+" "+input.get(1)+" "+input.get(2));
	}
}

Compiler output:
Main.java:6: error: cannot find symbol
		List<integer> input = new ArrayList<Integer>();
		     ^
  symbol:   class integer
  location: class Main
Main.java:7: error: cannot find symbol
		while(sc.hasNextInt){
		        ^
  symbol:   variable hasNextInt
  location: variable sc of type Scanner
Main.java:8: error: cannot find symbol
			input.add(sc.nextInt);
			            ^
  symbol:   variable nextInt
  location: variable sc of type Scanner
3 errors
Language: Java

import java.uitl.*;
import java.util;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		List<integer> input = new ArrayList<Integer>();
		while(sc.hasNextInt){
			input.add(sc.nextInt);
		}
		while(input.get(0)<input.get(1) || input.get(1)<input.get(2)){
			int store;
			if(input.get(0)>input.get(1)){
				store=input.get(0);
				input.set(0,input.get(1));
				input.set(1,store);
			}
			if(input.get(1)>input.get(2)){
				store=input.get(1);
				input.set(1,input.get(2));
				input.set(2,store);
			}
		}
		System.out.println(input.get(0)+" "+input.get(1)+" "+input.get(2));
	}
}

Compiler output:
Main.java:2: error: cannot find symbol
import java.util;
           ^
  symbol:   class util
  location: package java
Main.java:1: error: package java.uitl does not exist
import java.uitl.*;
^
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
		List<integer> input = new ArrayList<Integer>();
		^
  symbol:   class List
  location: class Main
Main.java:7: error: cannot find symbol
		List<integer> input = new ArrayList<Integer>();
		     ^
  symbol:   class integer
  location: class Main
Main.java:7: error: cannot find symbol
		List<integer> input = new ArrayList<Integer>();
		                          ^
  symbol:   class ArrayList
  location: class Main
7 errors
Language: Java

import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		ArrayList<integer> input = new ArrayList<Integer>();
		while(sc.hasNextInt){
			input.add(sc.nextInt);
		}
		while(input.get(0)<input.get(1) || input.get(1)<input.get(2)){
			int store;
			if(input.get(0)>input.get(1)){
				store=input.get(0);
				input.set(0,input.get(1));
				input.set(1,store);
			}
			if(input.get(1)>input.get(2)){
				store=input.get(1);
				input.set(1,input.get(2));
				input.set(2,store);
			}
		}
		System.out.println(input.get(0)+" "+input.get(1)+" "+input.get(2));
	}
}

Compiler output:
Main.java:6: error: cannot find symbol
		ArrayList<integer> input = new ArrayList<Integer>();
		          ^
  symbol:   class integer
  location: class Main
Main.java:7: error: cannot find symbol
		while(sc.hasNextInt){
		        ^
  symbol:   variable hasNextInt
  location: variable sc of type Scanner
Main.java:8: error: cannot find symbol
			input.add(sc.nextInt);
			            ^
  symbol:   variable nextInt
  location: variable sc of type Scanner
3 errors
Language: Java

import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> input = new ArrayList<Integer>();
		while(sc.hasNextInt){
			input.add(sc.nextInt);
		}
		while(input.get(0)<input.get(1) || input.get(1)<input.get(2)){
			int store;
			if(input.get(0)>input.get(1)){
				store=input.get(0);
				input.set(0,input.get(1));
				input.set(1,store);
			}
			if(input.get(1)>input.get(2)){
				store=input.get(1);
				input.set(1,input.get(2));
				input.set(2,store);
			}
		}
		System.out.println(input.get(0)+" "+input.get(1)+" "+input.get(2));
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
		while(sc.hasNextInt){
		        ^
  symbol:   variable hasNextInt
  location: variable sc of type Scanner
Main.java:8: error: cannot find symbol
			input.add(sc.nextInt);
			            ^
  symbol:   variable nextInt
  location: variable sc of type Scanner
2 errors
Language: Java

import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> input = new ArrayList<Integer>();
		while(sc.hasNextInt()){
			input.add(sc.nextInt);
		}
		while(input.get(0)<input.get(1) || input.get(1)<input.get(2)){
			int store;
			if(input.get(0)>input.get(1)){
				store=input.get(0);
				input.set(0,input.get(1));
				input.set(1,store);
			}
			if(input.get(1)>input.get(2)){
				store=input.get(1);
				input.set(1,input.get(2));
				input.set(2,store);
			}
		}
		System.out.println(input.get(0)+" "+input.get(1)+" "+input.get(2));
	}
}

Compiler output:
Main.java:8: error: cannot find symbol
			input.add(sc.nextInt);
			            ^
  symbol:   variable nextInt
  location: variable sc of type Scanner
1 error