im trying to create a different class which can create a file in Java in the same manner as your tutorials did. But it is giving an error. Is it different when i have to implement it in a different class?