Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package javaapplication1;
- class A
- {
- int [] tab;
- A(int rozm)
- {
- tab=new int [3*rozm];
- }
- void PrintTab()
- {
- for (int i=0;i<tab.length;i++)
- {
- for (int k=tab.length/3;k<tab.length*2/3;k++)
- tab[k]=1;
- System.out.print(tab[i]+" ");
- }
- }
- }
- /**
- *
- * @author Użytkownik
- */
- public class JavaApplication1 {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- A p,l;
- l=new A(8);
- l.PrintTab();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement