snippets and programs built in java (moslty from eecs 282)