本帖最後由 李泳霖 於 2022-1-28 09:02 編輯
![](https://seed.istak.org.tw/attachment.php?aid=NTc3NXxlYWJjNDc3Y3wxNTYyMTU5NTI5fDI4YWZ5VHRGOUNmZ05sZmthYUU1WHMrcXM5U3FwWVFCSUFpcXNwTkpIanlxZ1dn&noupdate=yes) - public class Ch50 {
- static void hello(int n)
- {
- for(int i=0; i<n; i++)
- System.out.println("Hello!!!");
- }
-
- static int myPlus(int a, int b, int c)
- {
- return a+b+c;
- }
-
- public static void main(String[] args)
- {
- hello(5);
- System.out.println(myPlus(1,2,3));
- }
- }
複製代碼 |