Case-sensitivity of identifiers: Difference between revisions

Content deleted Content added
m →‎{{header|Tcl}}: match output properly
+Java
Line 24:
'The three dogs are named ',dog,', ',Dog,', and ',DOG
The three dogs are named Benjamin, Samba, and Bernie </lang>
=={{header|Java}}==
 
<lang java>String dog = "Benjamin";
String Dog = "Samba"; //in general, identifiers that start with capital letters are class names
String DOG = "Bernie"; //in general, identifiers in all caps are constants
//the conventions listed in comments here are not enforced by the language
System.out.println("There are three dogs named " + dog + ", " + Dog + ", and " + DOG + "'");</lang>
=={{header|Perl}}==
<lang perl># These variables are all different