source: java2python/core/src/test/java/testcode/DoWhile.java

Last change on this file was 1152, checked in by wouter, 8 weeks ago

#368 added do-while support

File size: 282 bytes
Line 
1package testcode;
2
3import org.eclipse.jdt.annotation.NonNull;
4
5public class DoWhile {
6
7 static public void main(String[] args) {
8 @NonNull
9 String res = "";
10 @NonNull
11 Integer n = 3;
12 do {
13 res += n.toString();
14 n -= 1;
15 } while (n > 0);
16
17 System.out.println(res);
18 }
19
20}
Note: See TracBrowser for help on using the repository browser.