mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-26 16:29:28 +00:00
24 lines
1.0 KiB
Java
24 lines
1.0 KiB
Java
/*--------------------------------------------------------------------------*/
|
|
/* File name : err8.java */
|
|
/* : */
|
|
/* Cause : When "do while" statement has only "break", error. */
|
|
/* : */
|
|
/* Message : err8.java: In class `err8': xxxxxx */
|
|
/* : err8.java: In method `main(java.lang.String[])': */
|
|
/* : err8.java:20: Unreachable statement. */
|
|
/* : } while (true) ; */
|
|
/* : ^ */
|
|
/* : 1 error */
|
|
/*--------------------------------------------------------------------------*/
|
|
|
|
public class err8 {
|
|
public static void main(String[] args) {
|
|
do {
|
|
break;
|
|
} while (true) ;
|
|
|
|
System.out.println("OK");
|
|
}
|
|
}
|
|
|