Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1. import static jsTools.Input.*;
  2. public class Aufgabe39 {     //MainClass
  3.  
  4.  
  5.  
  6.     public static void main (String args[]) {
  7.     Spx h = new Spx(5);
  8.    
  9.        
  10.        
  11.        
  12.     }  
  13. }
  14.  
  15.  
  16. class Spx{
  17.     static int counter = 0;
  18.    
  19.     int arr[];
  20.    
  21.    
  22.  
  23.     Spx(int lge){
  24.         arr = new int[lge];
  25.         for(int i = 0; i<lge; i++){
  26.             arr[i]=lge-i;
  27.         }
  28.         counter++;
  29.     }
  30.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement