Hello.
Why is the NullPointerException generated in the following code snippet at run-time?
(the last two lines are problematic)class Info{ public String name; public String version; public String arch; double CPUSpeed; }; Info info = new Info(); Info[] queue = new Info[100]; int pos = 0; queue[pos].name = System.getProperty("os.name"); System.out.println( queue[pos].name);