Advertisement
BlackBoY_

Overloadingex

Jun 23rd, 2021
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package tutorial;
  2.  
  3. public class Overloadingex {
  4.    static int bbideal (int tb, int n){return tb-n;}
  5.    static double bbideal (double tb, double n){return tb-n;}
  6.    
  7.     public static void main(String[] args) {
  8.         System.out.println(Overloadingex.bbideal(170, 110));
  9.         System.out.println(Overloadingex.bbideal(172.5, 110));
  10.     }
  11. }
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement