I am relatively new to working with Java and have come from a C/C++ background. In my app I am needing a number of classes which will simply hold data.
Rather than have one file per data class, I thought of simply putting all the classes inside a basic class.
Here is what I am declaring -
public class InternalData
{
    public class LocalSearchDef
    {
        public String m_sAdresse = null;
        public GeoPoint m_gpPoint = null;
        public int m_iSearchRadius = 0;
    }
    public class GeoBounds
    {
        public double m_dNELat;
        public double m_dNELng;
        public double m_dSWLat;
        public double m_dSWLng;
    }
}
However, eclipse tells me that there is "No enclosing instance of type InternalData is accessible. Must qualify the allocation with an enclosing instance of type InternalData (e.g. x.new A() where x is an instance of InternalData).", when I try to create a new instance of, say, GeoLocation I get the error.
This happens with either :
GeoLocation gl = new GeoLocation();
or
GeoLocation gl = new InternalData.GeoLocation();
Can anyone point me in the right direction please ?