Some Basic Java Problems