Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Name of a class 'Data.java'

 
Paweł Baczyński
Bartender
Posts: 1831
33
Firefox Browser IntelliJ IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys!
I have a serious doubt. My must requirement says that a class implementing provided interface must be called Data.java.
Well... no class can ever be called with a dot in its name. So I called my class Data in a Data.java file.
I expected some things that can make me uncertain but not with a must requirement of a class name!
Am I too paranoid?
 
Himai Minh
Ranch Hand
Posts: 1328
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The file should be called Data.java. But the class is Data.
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pawel Pawlowicz wrote:Am I too paranoid?


Yes

Kiddin'. It should just be just the following:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic