SHOW:
|
|
- or go back to the newest paste.
| 1 | import java.util.Random; | |
| 2 | ||
| 3 | ||
| 4 | public class Geld {
| |
| 5 | ||
| 6 | - | private static int[] geld = new int[8]; |
| 6 | + | public static int[] zahlung() {
|
| 7 | - | private static int n = 5; |
| 7 | + | |
| 8 | int[] geld = new int[8]; | |
| 9 | - | public static int[] getGeld() {
|
| 9 | + | int n = 5; |
| 10 | Random rand = new Random(); | |
| 11 | - | } |
| 11 | + | |
| 12 | for ( int i=0; i < geld.length; i++) {
| |
| 13 | ||
| 14 | - | public static void zahlung() {
|
| 14 | + | |
| 15 | ||
| 16 | } | |
| 17 | ||
| 18 | return geld; | |
| 19 | } | |
| 20 | ||
| 21 | public static float[] zusammenzaehlen(int[] zahl){
| |
| 22 | float[] geldfloat = new float[8]; | |
| 23 | ||
| 24 | ||
| 25 | for ( int i=0; i < geldfloat.length; i++) {
| |
| 26 | geldfloat[i]=zahl[i]; | |
| 27 | ||
| 28 | } | |
| 29 | return geldfloat; | |
| 30 | } | |
| 31 | } |