+ 1

Can Java be used on notepad

14th Dec 2019, 8:42 PM
Cy63rX
Cy63rX - avatar
6 Respuestas
+ 2
You can write code in notepad but how can you compile there? Write code in notepad if you want, and copy code and paste in compiler, then you can run... better to use IDEs like notepad++, netbeans, eclipse, ...
14th Dec 2019, 8:46 PM
Jayakrishna 🇮🇳
+ 3
Sure :p File file1 = new File(foo.txt); if (!file1.exists()) file1.createNewFile
14th Dec 2019, 10:27 PM
HNNX 🐿
HNNX 🐿 - avatar
+ 2
The word used is a bit ambiguous.
15th Dec 2019, 3:21 AM
Sonic
Sonic - avatar
+ 1
you can use it for edit source file, then save your code as name.java, run > javac.exe name.java from command line (cmd) and then > java.exe name but notepad is too primitive editor for programmers, notepad++ is realy better, or if you want very simple editor win32pad, it has line numbers
14th Dec 2019, 9:15 PM
zemiak
+ 1
Yes u can write code in notepad and u can use command prompt which is available in your system
15th Dec 2019, 3:46 AM
Samavedam Praneeth
Samavedam Praneeth - avatar
+ 1
I also said that we can write code in notepad but we cannot compile by notepad.we can compile java file by command prompt
15th Dec 2019, 10:47 AM
Samavedam Praneeth
Samavedam Praneeth - avatar