Please allow me to share screen shot.
getting error on 6,7 and 10 line
import java.util.*;
public class Main {
public static void main(String[] args) {
int[] arr= {0,1,2,0,1,2};
Linear_Sort(arr);
display(arr);
}
public static int[] takeInput(){
public static void display(int[] arr){
public static void Linear_Sort(int[] arr){
while (mid <= high)
if (arr[mid]==0) {
swap(arr[low],arr[mid]);
low++ ; mid++ ;
}
else if(arr[mid]==1)
mid++;
else
swap(arr[mid],arr[high]);
high-- ;
}
}
}
}