One does not simply edit a .class file. Consider them to be completely final. If you want to change something about how it runs later, save a separate file with your changes that this class then reads and acts upon.
https://www.javatpoint.com/java-bufferedreader-class
If this was just a test to try to modify someone else’s finished project, you want to use a decompiler first. I would suggest the built in decompiler in intellij since it is easy to use.