The Java compiler requires that each top-level class be in its own source file.
On Tue, Apr 20, 2010 at 2:41 PM, Binxalot <[email protected]> wrote: > I'm coming over from C# where I can make a namespace and then have > each class placed into its own .cs file if I want, but in all of the > examples I've seen for android all of the methods and classes are all > in one big java file. > > Is it possible to put my classes in to their own java files and then > import those classes into a main program java file as needed like I do > in C#? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

