-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModBars.java
More file actions
33 lines (26 loc) · 776 Bytes
/
ModBars.java
File metadata and controls
33 lines (26 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package io.github.infraredpanda.modbars;
import java.util.ArrayList;
import java.util.Scanner;
import javax.swing.JFrame;
import io.github.infraredpanda.modbars.gui.GUI;
public class ModBars
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
System.out.println("Enter file name : ");
String fileName = in.nextLine();
IngredientHelper ingredientData = new IngredientHelper(fileName + ".txt");
BarHelper barData = new BarHelper();
ArrayList<Ingredient> ingredientList = ingredientData.getIngredientList();
barData.calculateTotals(ingredientList);
Bar bar = barData.calculateTotals(ingredientList);
System.out.println(bar.toString());
in.close();
}
//#Koki was fired
public ModBars()
{
GUI gui = new GUI();
}
}