Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Sample_method_1{
- public static void main(String[] args){ // メインメソッド
- helloworld(); //helloworldメソッド呼び出し
- }
- public static void helloworld(){ //メソッドの定義 メソッド名 :helloworld
- System.out.println("hello world"); //コンソールにhello worldと出力する
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement