error: cannot find symbol
Arrays.sort(list);
21th, line.
What's wrong is it?
Thanks a lot. ,!
package com.codegym.task.task06.task0622;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
/*
Ascending numbers
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
int a= Integer.parseInt(r.readLine());
int b= Integer.parseInt(r.readLine());
int c= Integer.parseInt(r.readLine());
int d= Integer.parseInt(r.readLine());
int e= Integer.parseInt(r.readLine());
int[] list = {a,b,c,d,e};
Arrays.sort(list);
System.out.println(Arrays.toString(list));
}
//write your code here
}