Cook your Lasagna/Java

public class Lasagna {

public static int expectedMinutesInOven(){
    return 40;
}
public static int remainingMinutesInOven(int actual){
    int expected = expectedMinutesInOven();
    int result = expected-actual;
    return result;
}
public static int preparationTimeInMinutes(int layers){
    int preptime = layers*2;
    return preptime;
}
public static int totalTimeInMinutes(int layer, int minutes){
    int prep = preparationTimeInMinutes(layer);
    int result = prep + minutes; 
    return result;
}

}

This code works

Did you have a question? Or did you just want to share your solution?

I just shared my solution

You can publish your solution on the website :smile: With thousands of solutions being published every day, having people opening a new thread every time they complete an exercise probably isn’t sustaintable.

Side note: if you are sharing code, you can use codeblocks to format them properly and add syntax highlighting!

1 Like

ok thanks for the tips!!

That can’t be a beginner java… :sweat_smile: