Content deleted Content added
→Ambiguous: new section |
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags |
||
Line 19:
The second example is buggy: At EOF, S.readLine() will return null, so S.readLine().toUpperCase() throws an exception. better:
<
// The same as: import java.io.*;
importPackage(java.io);
Line 34:
if (s) System.out.println(s.toUpperCase());
}
</syntaxhighlight>
-- Shouldn't this be sufficient (and more readable):
<
// The same as: import java.io.*;
importPackage(java.io);
Line 49:
System.out.println(s.toUpperCase());
}
</syntaxhighlight>
[[User:Socramus|Socramus]] ([[User talk:Socramus|talk]]) 14:41, 22 April 2010 (UTC)
|