Problem in sorted array

import java.util.;
import java.io.
;
class input{
public static void sort(int arr[],int s,int k){
if(s==k){
System.out.println(“true”);}
if(arr[s]<arr[s+1]){
sort(arr,s+1,k);}
else
System.out.println(“false”);

}
public static void main(String args[]){
try{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int arr[]=new int[n];
for(int i=0;i<n;i++)
arr[i]=sc.nextInt();
sort(arr,0,n-1);}
catch(Exception e){System.out.println(e);}
}
}
can you please tell me what is wrong

first of all there is no base case in the program
and don’t print there in function.

make the function return type boolean