Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Question on import java.util.ArrayList, etc.

807588Apr 3 2009 — edited Apr 3 2009
Hi,

I was wondering what the following meant and what the differences were. When would I have to use these:

import java.util.ArrayList;
import java.util.Collections; <--I especially don't understand what this means
import java.util.Comparator; <---same for this (can I consolidate these into the bottom two?)
import java.io.*;
import java.util.*;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 1 2009
Added on Apr 3 2009
10 comments
247 views