Java Reference
In-Depth Information
//
Bad code - uses el (l) as a variable name
List<String> l = new ArrayList<String>();
l.add("Foo");
System.out.println(1);
In summary, the lowercase letter
el
and the digit 1 are nearly identical in most typewriter fonts. To
avoid confusing the readers of your program, never use a lowercase
el
to terminate a
long
literal or
as a variable name. Java inherited much from the C programming language, including its syntax for
long
literals. It was probably a mistake to allow
long
literals to be written with a lowercase
el
.
< Day Day Up >
Search WWH ::
Custom Search