Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package com.mycompany.app8;
- /**
- *
- * @author Admin
- */
- public class Test2 {
- public static void main(String[] args) {
- // for
- System.out.println("FOR");
- for (int i = 0; i < 5; i++) {
- System.out.println(i);
- }
- // while
- System.out.println("WHILE");
- int j = 0;
- while(j<5){
- System.out.println(j);
- j++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement