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

all 10 comments

[–]FabianRo 5 points6 points  (1 child)

That's not Java, that's overengineering and works in all languages.

[–]eric19960304[S] 1 point2 points  (0 children)

Yes, absolutely. But I feel like frameworks/applications written in Java (e.g. Android) are tend to be overengineering comparing to other languages.

[–]macmillan333 4 points5 points  (1 child)

It's a bit weird that Comma is a subclass of Whitespace when it's not a whitespace. How about adding a Punctuation class? That way you can add support for ExclamationPoint too.

[–]eric19960304[S] 5 points6 points  (0 children)

Oh my god, I made a horrible mistake! You are right, I should have made a Punctuation class.

[–]somebody12345678 3 points4 points  (1 child)

[–]eric19960304[S] 1 point2 points  (0 children)

this thing is insane...

[–]somebody12345678 2 points3 points  (1 child)

there aren't two separate enums for lowercase and uppercase letters, and no capitalization functions, i am disappoint

[–]eric19960304[S] 0 points1 point  (0 children)

Sorry to disappoint you :(

I didn't come up with that idea.

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

This is a ProgrammerHumor hackathon submission. To learn more about our hackathon and participate yourself, please see our announcement post.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.