test.java 373 B

1234567891011121314151617
  1. public class BreakpointDemo{
  2. public static void main(String[] arg){
  3. int sum=0;
  4. int k=0;
  5. System.out.println("Hello,Breakpoint!");
  6. while(sum<70000){
  7. k++;
  8. for(int i=0;i<100;i++){
  9. sum=sum+i;
  10. System.out.println("i = "+i);
  11. System.out.println("sum ="+sum);
  12. }
  13. System.out.println("k = "+ k);
  14. System.out.println("sum ="+ sum);
  15. }
  16. }
  17. }