my dog learned polymorphism*
The moose likes Beginning Java and the fly likes import problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "import problem" Watch "import problem" New topic
Author

import problem

david rialto
Greenhorn

Joined: Sep 30, 2008
Posts: 5
nm
[ September 30, 2008: Message edited by: c za ]
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18545
    
  40

i know its not all correct. i know mike's name has not been created.
i just dont know why it wont import.


First of all, there is no need to import if both classes are in the same package. Second, there are some problems with *not* using a package. So, if the class is going to be imported, you should consider putting it into a package.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
david rialto
Greenhorn

Joined: Sep 30, 2008
Posts: 5
thanks henry.
i figured that part out.
thanks for the help. i'm sure i'll be back with a better question.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19655
    
  18

"c za",

Please read your private messages regarding an important announcement.

Thank you,

Rob


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: import problem