Some Sample Java Problems