Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.expgamer303.javabasics.whileStuff;
- public class DoWhile {
- public static void main(String args[]) {
- int counter = 15;
- do {
- System.out.println(counter); //Guaranteed to Run Stuff in Do Brackets Once
- counter++; //Runs Again if 'while' is True
- } while (counter <= 10);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement