/* *copyright (c) 2014, Yantai University School of computer *all rights reserved. * File name: main.cpp * Zhang Wanhua * Completion Date: August 3, 2015 * version number: v1.0 * * Problem Description: Write a Helloword program that displays the word "hello" on the screen * 1, In Java pragmatics, write a program * 2, this program needs to run and have display function * Step: 1, define a class, through class to complete * 2, to run this class, requires the Main method * 3, display function through the OUTPUT statement *// code:// Define a class Helloword {//define a Main method public static void main (string[] args) {//Output statement System.out.println ("Hello world!");}}
Operation Result:
Learning experience:
Finally, I wrote my first Java code.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
My first Java program Helloword