Advertisement
Guest User

ZahlenUmdrehen Java

a guest
Nov 18th, 2015
1,406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1.  
  2. public class ZahlenUmdrehen {
  3.  
  4.     static int[] zahlen = {10, 4, 6, 7, 3, 5, 1};
  5.    
  6.     public static void main(String[] args) {
  7.         ausgabeZahlenfolge();
  8.  
  9.     }
  10.    
  11.     private static void ausgabeZahlenfolge() {
  12.         for(int i = zahlen.length - 1; i >= 0; i--) {
  13.             System.out.println(zahlen[i]);
  14.         }
  15.     }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement