I have no clue why not even the first requirement is met:
You must use RandomAccessFile in the Solution class's main() method.
package com.codegym.task.task32.task3201;
import java.io.IOException;
import java.io.RandomAccessFile;
/*
Writing to an existing file
*/
public class Solution {
public static void main(String... args) throws IOException {
String fileName = args[0];
int number = Integer.getInteger(args[1]);
String text = args[2];
RandomAccessFile raf = new RandomAccessFile(fileName, "rw");
if (raf.length() < number){
raf.seek(raf.length());
} else {
raf.seek(number);
}
raf.writeBytes(text);
raf.close();
}
}