Untitled

 avatar
user_9243973
plain_text
2 years ago
497 B
6
Indexable
public class test {

	public static void main(String[] args) {

    Robot [] tabR = new Robot[10];
    
    
    for(int i=0;i<tabR.length/2;i++)
    {
    	tabR[i]= new Robot("R"+i);
    }
    
    for(int i=tabR.length/2;i<tabR.length;i++)
    {
    	tabR[i]= new RobotNG("R"+i);
    }
    
    for(int i=0;i<tabR.length/2;i++)
    {
    	tabR[i].affiche();
    }
    
    for(int i=tabR.length/2;i<tabR.length;i++)
    {
    	tabR[i].affiche();
    }
    

	}

}
Editor is loading...