【自动化__持续集成】___java___代码空指针
一、代码如下
package www.wujianbotwo; public class Demo01 { public static void main(String[] args) { // TODO Auto-generated method stub People p= null; //p.eat(); String s= null; //s.charAt(0); //System.out.println(s.length()); System.out.println(s.hashCode()); } } class People{ public void eat() { // TODO Auto-generated method stub System.out.println("吃饭"); } }