【每日日报】第二十七天

1 完全学习手册第八章

 综合实例

 1 package BaoCuo;
 2 import java.util.*;
 3 public class Demol {
 4     public static void main(String[] args){
 5         Scanner in = new Scanner(System.in);
 6         while(true){
 7             System.out.print("1 堆溢出  2 栈溢出:");
 8             String str=in.nextLine();
 9             if(str.equals("1")){
10                 char[] chs=new char[0x7fffffff];
11             }else if(str.equals("2")){
12                 f();
13             }
14         }
15     }
16     public static void f(){
17         f();
18     }
19 }

 

2 没遇到什么问题

3 明天继续看书

原文地址:https://www.cnblogs.com/linmob/p/13418049.html