Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Channels {
- private String name[] = new String[11];
- public Channels[] tvp = new Channels[11];
- public void setName(String name, int n){ this.name[n] = name; }
- public String getName(int n){ return tvp[n].name[n]; }
- ////////////////////////////////////////////////////////////////////////
- public void obiects(){
- for (int i=0;i<11; i++)
- tvp[i] = new Channels(); //mozna osobna pentle
- }
- public void nameset(){
- for (int i=2;i<11; i++){
- tvp[i].setName("TVP" + (i-1), i);
- }
- tvp[0].setName("OFF", 1);
- tvp[1].setName("ON",2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement