Advertisement
kamandos

Hw2

Jun 27th, 2022
750
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. public class Main
  3. {
  4.     public static void main(String[] args) {
  5.         int MyLikes = Likes(40, "MoreLikes", true);
  6.         System.out.println(MyLikes);
  7.     }
  8.    
  9.     public static int Likes(int LikesNow, String comment, boolean Like)
  10.     {
  11.         System.out.println(comment);
  12.         if(Like){
  13.             LikesNow++;
  14.         }
  15.         return LikesNow;
  16.     }
  17. }
  18.  
Advertisement
RAW Paste Data Copied
Advertisement