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 gergonek;
- /**
- *
- * @author lakod
- */
- public class Gergonek {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- int[][] kep = {
- {1,1,1,1,1},
- {0,1,1,1,0},
- {0,0,1,0,0},
- {0,1,1,1,0},
- {1,1,1,1,1},
- };
- for(int y = 0; y < kep.length; y++){
- for(int x = 0; x < kep[y].length; x++){
- if(kep[y][x] == 0){
- System.out.print(" ");
- } else{
- System.out.print("*");
- }
- }
- System.out.println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement