Problems on mac os x for java newbie
Hi
i have just started learning java and was really enjoying it until I hit some big obstacles on the mac.
I have been working through Rogers Cadenhead's book Java 2 in 21 Days (from Sams). His examples are only explained for PC and Linux.
To complete the current chapter I need to set up directory structures and declare them as packages at the beginning of my .java files. This does not work on a mac and I can't find out how to do it. His examples are that you would have (for example) a directory structure called org/cadenhead/ecommerce in the JDK folder on a PC, and then at the top of each .java file you would say package org.cadenhead.ecommerce; . Does anyone know how I can create a similar thing on the mac?
I have tried simply writing the required .java files and compiling them, without any reference to packages at all, just keeping everything in a separate directory. But then I get scary messages when I try to compile such as:
javac -Xlint:unchecked Storefront.java
Storefront.java:9: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.LinkedList
catalog.add(it);
^
Storefront.java:21: warning: [unchecked] unchecked conversion
found: java.util.LinkedList
required: java.util.List<T>
Collections.sort(catalog);
^
Storefront.java:21: warning: [unchecked] unchecked method invocation: <T>sort(java.util.List<T>) in java.util.Collections is applied to (java.util.LinkedList)
Collections.sort(catalog);
^
3 warnings
I don't really know what to try next and would really appreciate any advice anyone can offer me to get me back on track. Many thanks.

