$ java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-113)
Java HotSpot(TM) Client VM (build 1.5.0_06-68, mixed mode, sharing)
apache-tomcat-6.0.13
Note: src/com/example/model/BeerExpert.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
$ java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-113)
Java HotSpot(TM) Client VM (build 1.5.0_06-68, mixed mode, sharing)
apache-tomcat-6.0.13
Does getID() really exist(check spelling) in that class and what is its visibility modifiers?
I preferred to declare i, j and k outside the loops, so that variables don't have to be re-created during each iteration.
This helps me check my concepts in various fields.
all of which import package com.example
when I run follow code have a NullPointerException