Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Test {
- public static void main(String[] args) {
- Lik l=new Lik();
- l.narisiLik();
- }
- }
- -----------------------------
- public class
- public class Lik{
- protected boolean[][] vsebina;
- public Lik() {
- this.vsebina=vsebina;
- }
- public void narisiLik() {
- for(int i=0;i<vsebina.length;i++) {
- for(int j=0;j<vsebina[i].length;j++) {
- System.out.print(vsebina[i][j] ? '*' : '-');
- }
- System.out.println();
- }
- }
- }
Add Comment
Please, Sign In to add comment