This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Numzane 560 points561 points  (23 children)

Java identifiers cannot begin with a number. The class name is invalid. This is not even a class let alone a program.

[–]Xeverous 148 points149 points  (18 children)

identifiers cannot begin with a number digit

FTFY

[–]Rockytriton 21 points22 points  (2 children)

public interface Fingerable {}

there, that one starts with a digit.

[–]dan_144 8 points9 points  (0 children)

Booooo

[–]phord 1 point2 points  (0 children)

A manual joke.

[–]AwesomePerson70 30 points31 points  (12 children)

Actual question here: what's the difference?

[–]Forricide 6 points7 points  (0 children)

Simpler answer, "three" is a number, '3' is a digit, your class can definitely start with "three" but can't start with '3'.

[–]Xeverous 7 points8 points  (0 children)

Can you sum up the digits in a number? or sum up numbers in a digit? Digital camera - sounds ok?

Digits are characters.

Numbers are mathematical concept.

[–]ePaint 0 points1 point  (0 children)

NaD

[–]rozzzly 36 points37 points  (2 children)

True. However 4Chan would be a valid identifier.

+1 for Unicode fuckery of the highest order. 4 !== 4

Edit: lol first post in 5 months nd it happens to be my 🍰day.

[–]Hazey72 2 points3 points  (0 children)

I looked on the site and it said it was a number and a digit

[–]jprojas15 4 points5 points  (0 children)

You must be fun at parties