Update assignment6Java.js