Advertisement
SenpaiZero

methods

Feb 12th, 2024
981
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1. package labExer1B_;
  2.  
  3. public class plusClass {
  4.     public void showNumberPlus10(int num)
  5.     {
  6.         System.out.println(num + " plus 10 is " + (num+10));
  7.     }
  8.    
  9.     public void showNumberPlus100(int num)
  10.     {
  11.         System.out.println(num + " plus 100 is " + (num+100));
  12.     }
  13.    
  14.     public void showNumberPlus1000(int num)
  15.     {
  16.         System.out.println(num + " plus 1000 is " + (num+1000));
  17.     }
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement