Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Name of a class 'Data.java'  RSS feed

 
Paweł Baczyński
Bartender
Posts: 2004
42
Firefox Browser IntelliJ IDE Java Linux Spring
  • 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: 1514
9
  • 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: 2273
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:

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!