some basic core  java code