|
|
Re: java
|
Posted: Dec 20, 2007 7:17 AM
|
|
The problem is that you are defining two types(classes or interfaces) in the source file having name as Elephant and elephant. This is immaterial of whether you have defined a public type in the file because a separate class file is created for all top level types. Solution: I would say that you try creating two files with name as elephant.class and Elephant.class on hard disk. The OS won't allow. I mean java treats elephant and Elephant as different but OS doesn't allow a separate file to be created with only case difference. change elephant or Elephant to elephant1 or Elephant1.
Hope it helps. Regards, Sandeep
|
|