In TextPad, I have a class called Document1. I click on file-save as and for "save as type" I click "Java". However, when I hit OK, instead of showing up as Document1.java, it shows up as Document1.txt. Why does it save as a .txt file? And how do I get it to save as a .java file?
Asked
Active
Viewed 645 times
2
-
when saving the file, try it withing quotations as such "Document1.java" and then click save. – dinukadev Sep 27 '15 at 08:46
3 Answers
1
While saving, select the file type as All Types(*) and name as Document1.java.

user2953113
- 545
- 4
- 16
1
Configure
, Preferences
, File Name Filters
Create a File Name Filter
for Java
Description:
can be whatever you want, but the Wild cards:
should be *.java

Kennah
- 487
- 1
- 5
- 16
1
You can rename the file extension from the folder, replacing the .txt with .java . Make sure to check the "File Name Extensions" box in the veiw tab so you can see the .txt and .java .

Zane
- 11
- 1