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.
На этой странице сайта вы можете посмотреть видео онлайн How to RUN JAVA program in Mac OS Terminal (CMD) . длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Programming Points 28 Июнь 2019, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 75 раз и оно понравилось 4 зрителям. Приятного просмотра!