Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Random;
- public class Geld {
- public static int[] geld = new int[8];
- static int n = 5;
- static Random rand = new Random();
- public static int[] zahlung() {
- for ( int i=0; i < geld.length; i++) {
- geld[i] = rand.nextInt(n);
- }
- return geld;
- }
- public static float[] zusammenzaehlen(int[] zahl){
- float[] geldfloat = new float[8];
- for ( int i=0; i < geldfloat.length; i++) {
- geldfloat[i]=zahl[i];
- }
- return geldfloat;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement