Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. import java.util.Scanner;
  2. import java.text.DecimalFormat;
  3.  
  4. public class Crafting {
  5.  
  6. public static void main(String[]arg) {
  7. DecimalFormat decimalFormat = new DecimalFormat("#,###");
  8. Scanner input = new Scanner(System.in);
  9.  
  10. int levelwanted = 3258594;
  11.  
  12. System.out.print("Enter your current xp:");
  13. int currentxp = input.nextInt();
  14. int xpleft = levelwanted - currentxp;
  15.  
  16. String numberAsString = decimalFormat.format(xpleft);
  17. System.out.println("you have to gain " + numberAsString +" experence for level 85 crafting");
  18.  
  19. double moltenglass = 10;
  20. double unporb = 52.5;
  21. double airb = 137.5;
  22.  
  23. double totalxpg = airb + unporb + moltenglass;
  24.  
  25. double make = xpleft / totalxpg;
  26. String numberAsString2 = decimalFormat.format(make);
  27. System.out.print("you have to make " + numberAsString2 + " air battlestaffs for 85 crafting.");
  28.  
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement