w3schools學習Java雙迴圈,宣告整數int,字串String
Java程式碼 public class Main { /* 劉任昌2022/10/13德明C506教室 */ public static void main(String[] args) { int i, j, k=15; /* 宣告整數integer i, j, k */ String a="第", b="列: "; /* 宣告字串 a, b且設定值 */ for (i = 0; i <= k; i++) { /* 迴圈 */ System.out.print(a + i + b);/* 字串用+連結 */ for (j = 0; j <= i; j++) /* 從0開始; 終點;改變量 */ { System.out.print(j); /* 迴圈內只有一指令,可不放{ }*/ System.out.print(" "); /* 函數或方法System的out的print*/ } System.out.println("."); /* 列印字串"."雙引號包起,都是String*/ } } } w3schools截圖 Java語言介紹 What is Java? Java is a popular programming language, created in 1995. It is owned by Oracle, and more than 3 billion devices run Java. It is used for: Mobile applications (specially Android apps) Desktop applications Web applications Web servers and application servers Games Database connection And much, much more! 什麼是 Java? Java是...
https://cpc920508123.blogspot.com/2022/12/186javalengthcharat.html
回覆刪除https://html-css-javascript-yaoto.blogspot.com/2022/12/public-class-main-2022.html
回覆刪除https://alien1213.blogspot.com/2022/12/javalengthcharat.html
回覆刪除https://una1218.blogspot.com/2022/12/javalengthcharat.html
回覆刪除https://changmasaxciksdj.blogspot.com/2022/12/186javalengthcharat.html
回覆刪除https://kento920502.blogspot.com/2022/12/public-class-main-2022.htm
回覆刪除