This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from tabulate import tabulate | |
| # an integer is a whole number — 1, 2, 3, etc. | |
| # the factorial of an integer is the product of that integer and every integer lesser than it, not including zero | |
| # factorial of 1: 1 = 1 | |
| # factorial of 2: 1 * 2 = 2 | |
| # factorial of 3: 1 * 2 * 3 = 6 | |
| # factorial of 5: 1 * 2 * 3 * 4 * 5 = 120 | |
| # what if i wanted the factorial of 50? given the definition of factorial, we should be able to write a loop for that. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.Map; | |
| import java.util.Map.Entry; | |
| import java.util.regex.Matcher; | |
| import java.util.regex.Pattern; | |
| import org.bukkit.Bukkit; | |
| import org.bukkit.ChatColor; | |
| import org.bukkit.DyeColor; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class F { | |
| /** | |
| * String formatting class. | |
| * @author Incomprehendable | |
| */ | |
| private static Plugin plg = Main.getInstance(); | |
| private static Server serv = Bukkit.getServer(); | |