• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.util.Locale will accept any String...  RSS feed

 
T Vergilio
Ranch Hand
Posts: 231
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and will compile and run! Watch out for this one on the exam:



The output is:

heaven

Process completed.
 
Rajkamal Pillai
Ranch Hand
Posts: 445
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is that an observation or a question?
 
T Vergilio
Ranch Hand
Posts: 231
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It was an observation. I don't really know why, but just realised that it happens, so it's something to watch out for.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!