Guest User

Untitled

a guest
May 16th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. public class Test {
  2.  
  3. public static void main(String[] args) {
  4.  
  5. Lik l=new Lik();
  6. l.narisiLik();
  7. }
  8. }
  9.  
  10. -----------------------------
  11. public class
  12.  
  13. public class Lik{
  14. protected boolean[][] vsebina;
  15. public Lik() {
  16. this.vsebina=vsebina;
  17. }
  18. public void narisiLik() {
  19. for(int i=0;i<vsebina.length;i++) {
  20. for(int j=0;j<vsebina[i].length;j++) {
  21. System.out.print(vsebina[i][j] ? '*' : '-');
  22. }
  23. System.out.println();
  24. }
  25. }
  26.  
  27. }
Add Comment
Please, Sign In to add comment