Kitchen
JavaScript is disabled on your browser.
Skip navigation links
Package
Class
Tree
Deprecated
Index
Help
All Classes
SEARCH:
JavaScript is disabled on your browser.
Summary:
Nested |
Field |
Constr |
Method
Detail:
Field |
Constr |
Method
Class Kitchen
java.lang.Object
Kitchen
public class Kitchen
extends java.lang.Object
This is an application class modelling a kitchen cooking process
Constructor Summary
Constructors Constructor Description
Kitchen()
Creates a default kitchen containing a default oven
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description
java.lang.String burnFries()
Burns a plate of fries
java.lang.String burnPotato()
Burns a potato
java.lang.String cookFries()
Cooks a plate of fries
java.lang.String cookPotato()
Cooks a potato
java.lang.String doubleCookFries()
Cooks a plate of fries twice
java.lang.String doubleCookPotato()
Cooks a potato twice
static void main(java.lang.String[] args)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
Kitchen
public Kitchen()
Creates a default kitchen containing a default oven
Method Detail
main
public static void main(java.lang.String[] args)
cookPotato
public java.lang.String cookPotato()
Cooks a potato
Returns:
The state of the potato after cooking
burnPotato
public java.lang.String burnPotato()
Burns a potato
Returns:
The state of the potato after burning
doubleCookPotato
public java.lang.String doubleCookPotato()
Cooks a potato twice
Returns:
The state of the potato after cooking twice
cookFries
public java.lang.String cookFries()
Cooks a plate of fries
Returns:
The state of the fries after cooking
burnFries
public java.lang.String burnFries()
Burns a plate of fries
Returns:
The state of the fries after burning
doubleCookFries
public java.lang.String doubleCookFries()
Cooks a plate of fries twice
Returns:
The state of the fries after cooking twice
Skip navigation links
Package
Class
Tree
Deprecated
Index
Help
All Classes
JavaScript is disabled on your browser.
Summary:
Nested |
Field |
Constr |
Method
Detail:
Field |
Constr |
Method