you should have .java files these are the java code files. these are what you edit. You can use a text editor but i would recommend eclipse or intellJ to edit the file.
How did you decompile the files? In my experience decompliing is not always possible, you may get a load of gibberush after decompiling