Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
TextPad には、Document1 というクラスがあります。ファイルの名前を付けて保存をクリックし、「ファイルの種類」で「Java」をクリックします。しかし、OK を押すと、Document1.java ではなく Document1.txt と表示されます。.txt ファイルとして保存されるのはなぜですか? また、.java ファイルとして保存するにはどうすればよいですか?
保存する際、ファイルの種類を [すべての種類 (*)] として選択し、名前を Document1.java とします。
.txt を .java に置き換えて、フォルダーからファイル拡張子の名前を変更できます。.txt と .java が表示されるように、veiw タブの [File Name Extensions] ボックスを必ずオンにしてください。