Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- import java.text.DecimalFormat;
- public class Crafting {
- public static void main(String[]arg) {
- DecimalFormat decimalFormat = new DecimalFormat("#,###");
- Scanner input = new Scanner(System.in);
- int levelwanted = 3258594;
- System.out.print("Enter your current xp:");
- int currentxp = input.nextInt();
- int xpleft = levelwanted - currentxp;
- String numberAsString = decimalFormat.format(xpleft);
- System.out.println("you have to gain " + numberAsString +" experence for level 85 crafting");
- double moltenglass = 10;
- double unporb = 52.5;
- double airb = 137.5;
- double totalxpg = airb + unporb + moltenglass;
- double make = xpleft / totalxpg;
- String numberAsString2 = decimalFormat.format(make);
- System.out.print("you have to make " + numberAsString2 + " air battlestaffs for 85 crafting.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement