what is error in my code-----
import java.util.*;
public class Main
{
public static void main(String args[]) {
Scanner cin = new Scanner(System.in);
int m = cin.nextInt(),count = 0,n = m;
while(n>0){
n = n /10;
count++;
}
if(m==0){
count = 1;
}
int arr[] = new int[count];
int s = arr.length -1;
while(m>0){
int d = m%10;
arr[s] = d;
m = m / 10;
s–;
}
for(int i = 0;i<arr.length;i++)
{
if(arr[i] == 0)
{ }
else if(9-arr[i]<arr[i])
{
arr[i] = 9-arr[i];
}
}
for(int s1: arr)
{
System.out.print(s1);
}
}
}