void operations(){ //loads the data try { in = new RandomAccessFile(in_file,"r"); n = Integer.parseInt(in.readLine()); array = in.readLine().toCharArray(); } catch (IOException ex) { }catch (NumberFormatException ex) { } //here`s the operations for(int i = 1; i < 11; i++){ for(int j = 0; j < n; j+=i){ if(array[j] == '1'){ array[j] = '0'; } else{ array[j] = '1';