RE: Java class question

  • From: "Michael Malver" <mmalver@xxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Mon, 31 May 2010 12:50:34 -0500

Sure, you click new, then select "class"


-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Gilbert Neiva
Sent: Monday, May 31, 2010 12:40 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: Re: Java class question

How would I put classes in their own files with eclipse? Is there an option 
to create another source file within the same project?

Gilbert Neiva

----- Original Message ----- 
From: "Michael Malver" <mmalver@xxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Monday, May 31, 2010 11:21 AM
Subject: RE: Java class question


>I personally feel people should put each class in its own file, but java
> will allow multiple classes in one file.
> If memory serves, you can only have one main method in a file, and the 
> file
> needs to have the same name as the class with the main method in it.
>
> -----Original Message-----
> From: programmingblind-bounce@xxxxxxxxxxxxx
> [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Gilbert Neiva
> Sent: Monday, May 31, 2010 12:09 PM
> To: programmingblind@xxxxxxxxxxxxx
> Subject: Java class question
>
> If I were to write two classes in Java, would they be in different source
> file and compiled into different .class files, or can I put two classes in
> the same source file, and compile it into one class file?
>
> Gilbert Neiva
>
>
> __________
> View the list's information and change your settings at
> //www.freelists.org/list/programmingblind
> 

__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: