Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main
- {
- public static void main(String[] args) {
- int MyLikes = Likes(40, "MoreLikes", true);
- System.out.println(MyLikes);
- }
- public static int Likes(int LikesNow, String comment, boolean Like)
- {
- System.out.println(comment);
- if(Like){
- LikesNow++;
- }
- return LikesNow;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement