You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Main.java 453B

1234567891011121314151617181920212223242526
  1. package p1;
  2. public class Main {
  3. public static void main(String[] args) {
  4. new Main().doit();
  5. }
  6. private void doit() {
  7. long l = 2l + testit(3.2, new C().doit(23, 3.14), 5l);
  8. System.err.println(l);
  9. }
  10. private long testit(double d, long l1, long l2) {
  11. return (long)(d + l1 + l2);
  12. }
  13. }
  14. class C {
  15. long doit(int i, double d) {
  16. return (long)(d + i + f1(d, i, i));
  17. }
  18. int f1(double d1, long l1, int i1) {
  19. return (int)(d1 + l1 + i1);
  20. }
  21. }