瀏覽代碼

上传文件至 ''

1707040131 6 年之前
父節點
當前提交
faee51a880
共有 1 個文件被更改,包括 19 次插入0 次删除
  1. 19 0
      BreakpointDemo.java

+ 19 - 0
BreakpointDemo.java

@@ -0,0 +1,19 @@
+package hong;
+public class BreakpointDemo {
+	public static void main(String[] args) {
+		int sum = 0;
+		int k = 0;
+		System.out.println("Hello,Breakpoint!");
+		while (sum<65000){
+			k++;
+			for (int i=0;i<100;i++){
+				sum = sum +i;
+ 				System.out.println("i = "+i);
+ 				System.out.println("sum = "+sum);
+			}
+		}
+		System.out.println("k = "+k);
+		System.out.println("sum = "+sum);
+	}
+
+}