Can anyone tell me what is wrong with the writeString method? I`ve tried to call the basic method write on object fileOutputStream with parsing String to Int but I have still the same statement. Now in the writeString method is the other possible solution but it doesn`t work also.