Home > JAVA > Run Program โดยใช้ command prompt

Run Program โดยใช้ command prompt

November 24, 2009 No Comments    

ให้ทำงานใน directory เดิม หลังจากนั้นพิมพ์คำสั่งต่อไปนี้แล้วกด Enter

java HelloWorldApp

ผลลัพธ์จะแสดงดังรูป

run

โปรแกรมจะแสดงข้อความว่า “Hello World!” บนหน้าจอ

สำเร็จโปรแกรมของคุณสามารถทำงานได้แล้ว

Tags: , , , , ,

Comments : Run Program โดยใช้ command prompt

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>