How To Take User Input In Arraylist In Java Using Methods From A Different