|
Last change
on this file since 1394 was 2, checked in by bird, 23 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
251 bytes
|
| Line | |
|---|
| 1 | // A definite assignment test.
|
|---|
| 2 |
|
|---|
| 3 | public class assignment
|
|---|
| 4 | {
|
|---|
| 5 | public static Byte foo ()
|
|---|
| 6 | {
|
|---|
| 7 | Byte b;
|
|---|
| 8 |
|
|---|
| 9 | while (true) {
|
|---|
| 10 | try {
|
|---|
| 11 | b = Byte.decode ("42");
|
|---|
| 12 | break;
|
|---|
| 13 | } catch (NumberFormatException ignored) {}
|
|---|
| 14 | }
|
|---|
| 15 |
|
|---|
| 16 | return b;
|
|---|
| 17 | }
|
|---|
| 18 | }
|
|---|
| 19 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.