Город МОСКОВСКИЙ
00:04:12

How to RUN JAVA program in Mac OS Terminal (CMD) .

Аватар
Java разработка систем управления логистикой
Просмотры:
33
Дата загрузки:
05.12.2023 12:17
Длительность:
00:04:12
Категория:
Лайфстайл

Описание

FIRST go to Sublime text or any text Editor, then write JAVA program (CUI/GUI) any of them if you can, then Save as .Java EXTENSION anywhere of the Mac eg desktop, music, in any folder.
Then open terminal and type cd Name of the location eg :- cd Desktop, Press return/Enter
Now type javac file name with extension, press enter after few second if no error found then type Java classname eg:- java Hello (without extension). The output will be shown.

Рекомендуемые видео