source:
java2python/core/src/test/java/testcode/DoWhile.java
Last change on this file was 1152, checked in by , 8 weeks ago | |
---|---|
File size: 282 bytes |
Line | |
---|---|
1 | package testcode; |
2 | |
3 | import org.eclipse.jdt.annotation.NonNull; |
4 | |
5 | public 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.