fork download
  1. class suma{
  2. static int dodaj(int a, int b){
  3. return a+b;
  4. }
  5.  
  6. static double dodaj(double a, double b){
  7. return a+b;
  8. }
  9.  
  10.  
  11. public static void main(String[] args){
  12. System.out.print(dodaj(3,5));
  13.  
  14. }
  15. }
Success #stdin #stdout 0.07s 380160KB
stdin
Standard input is empty
stdout
8