File tree Expand file tree Collapse file tree
src/main/java/com/examplehub/basics Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Code Formatter
22
3- on : [push]
3+ on : [push, pull_request ]
44
55jobs :
66 checkstyle :
Original file line number Diff line number Diff line change 33
44name : Java CI with Gradle
55
6- on : [push]
6+ on : [push, pull_request ]
77
88jobs :
99 build :
Original file line number Diff line number Diff line change 33
44name : Java CI with Maven
55
6- on : [push]
6+ on : [push, pull_request ]
77
88jobs :
99 build :
Original file line number Diff line number Diff line change 11.gradle
22/build /
33.idea /
4+ target
45
56# Ignore Gradle GUI config
67gradle-app.setting
Original file line number Diff line number Diff line change @@ -66,6 +66,32 @@ public static void main(String[] args) {
6666 }
6767 System .out .println ("\n " );
6868
69+ /*
70+ * 1 2 3 4 5
71+ */
72+ int x = 0 ;
73+ while (true ) {
74+ x ++;
75+ System .out .print (x + "" );
76+ if (x == 5 ) {
77+ break ;
78+ }
79+ }
80+ System .out .println ();
81+
82+ /*
83+ * 1 2 3 4 5
84+ */
85+ int i = 0 ;
86+ do {
87+ i ++;
88+ System .out .print (i + "" );
89+ if (i == 5 ) {
90+ break ;
91+ }
92+ } while (true );
93+ System .out .println ();
94+
6995 /* infinite loop */
7096 /*
7197 for (; ; ) {
You can’t perform that action at this time.
0 commit comments