-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBar.java
More file actions
31 lines (29 loc) · 811 Bytes
/
Bar.java
File metadata and controls
31 lines (29 loc) · 811 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
package io.github.infraredpanda.modbars;
public class Bar
{
double calories;
double fat;
double cholesterol;
double sodium;
double carbs;
double fiber;
double sugar;
double protein;
public Bar(double cal, double fat, double cholesterol, double sodium, double carbs, double fiber, double sugar, double protein)
{
this.calories = cal;
this.fat = fat;
this.cholesterol = cholesterol;
this.sodium = sodium;
this.carbs = carbs;
this.fiber = fiber;
this.sugar = sugar;
this.protein = protein;
}
//Max Levine is a God
//#ModBarMonday
public String toString()
{
return ("Calories : " + calories + " Fat : " + fat + "g Cholesterol : " + cholesterol + "mg Sodium : " + sodium + "mg Carbs : " + carbs + "mg Fiber : " + fiber + "g Sugar : " + sugar + "g Protein : " + protein + "g");
}
}