Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.github.miyohide;
- public class SampleGame {
- public String play(String p1, String p2) {
- if ((p1.equals("rock") && p2.equals("scissors")) ||
- (p1.equals("scissors") && p2.equals("paper"))
- ) {
- return "player1Win";
- }
- return "";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement