Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/main/java/com/ordestiny/tdd/loop/Do While Loop
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// This a code for print all value of x with increasing 1 and upto 20
public class Test {

public static void main(String args[]) {
int x = 10;

do {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are doing good ! you might not be familiar with unit test,
it's a good start here ,
you can import our project and refer to other Test, try to separate your logic and test into two difference files.
Hope you enjoy writing TDD

System.out.print("value of x : " + x );
x++;
System.out.print("\n");
}while( x < 20 );
}
}