Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class U0901Main {
- public static void main(String[] args) {
- Integer intArr[]= {10,20,15};
- Float floatArr[] = new Float[3];
- for (int i =0; i<floatArr.length; i++ ) {
- floatArr[i] = (float) (Math.random() * 50);
- }
- U0901WorkArray<Integer> insWorkArrayInt = new U0901WorkArray(intArr);
- U0901WorkArray<Integer> insWorkArrayFloat = new U0901WorkArray(floatArr);
- insWorkArrayInt.sum();
- insWorkArrayFloat.sum();
- System.out.println(insWorkArrayInt.sum());
- System.out.println(insWorkArrayFloat.sum());
- String line = "Конфеты 'Маска';45;120";
- String[] item_fld = line.split(";");
- for (String a: item_fld)
- System.out.println(a);
- FoodItem testline = new FoodItem(item_fld[0], Float.parseFloat(item_fld[1]), Short.parseShort(item_fld[2]));
- testline.printAll();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement