Guest User

Untitled

a guest
Jan 19th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. import java.util.*;
  2. public class PriceAdjustment{
  3. public static int bumpMe(int price, int increase, boolean updown){
  4. return updown ? price + price* increase/100 : price - price* increase/100;
  5. }
  6. public static void main(String[] args){
  7. bumpMe(1000,10,true);
  8. bumpMe(999,10,false);
  9. }
  10. }
Add Comment
Please, Sign In to add comment