washing machine

Ads
 

washing machine

Create a washing machine class with methods as switchOn, acceptClothes, acceptDetergent, switchOff. acceptClothes accepts the noofClothes as argument & returns the noofClothes

View Answers

December 19, 2010 at 5:48 PM

public class WashingMachine{
  public void switchOn(){
  }
  public int acceptClothes(int noofClothes){
      return noofClothes;
  }
  public void acceptDetergent(){
  }
  public void switchOff(){
  }
  public static void main(String[] args){
    WashingMachine wm = new WashingMachine();
    wm.switchOn();
    int clothesAccepted = wm.acceptClothes(10);
    wm.acceptDtergent();
    wm.switchOff();
  }
}

Ads









Related Tutorials/Questions & Answers:
washing machine
washing machine   Create a washing machine class with methods as switchOn, acceptClothes, acceptDetergent, switchOff. acceptClothes accepts the noofClothes as argument & returns the noofClothes   public class
ATM machine in c#
ATM machine in c#  i am looking for a code that will be able to create an account and be able to log-in to the atm machine
Advertisements
ModuleNotFoundError: No module named 'machine'
ModuleNotFoundError: No module named 'machine'  Hi, My Python... 'machine' How to remove the ModuleNotFoundError: No module named 'machine... to install padas library. You can install machine python with following command
Java Virtual Machine
Java Virtual Machine  What is Java Virtual Machine? Are JVM different for each OS? Thanks   Hello, JVM or Java Virtual Machine is run... more at Java Virtual Machine Technology. Thanks
program to demonstrate java is machine nutral
program to demonstrate java is machine nutral   can any one give program to demonstrate java is machine nutral
What are prerequisites of machine learning?
What are prerequisites of machine learning? How to get started with machine learning? In this tutorial we will explains you the prerequisite of machine... machine learning. Machine learning is latest is programming and it deals
What are prerequisites of machine learning?
What are prerequisites of machine learning? How to get started with machine learning? In this tutorial we will explains you the prerequisite of machine... machine learning. Machine learning is latest is programming and it deals
What are prerequisites of machine learning?
What are prerequisites of machine learning? How to get started with machine learning? In this tutorial we will explains you the prerequisite of machine... machine learning. Machine learning is latest is programming and it deals
What are prerequisites of machine learning?
What are prerequisites of machine learning? How to get started with machine learning? In this tutorial we will explains you the prerequisite of machine... machine learning. Machine learning is latest is programming and it deals
What are prerequisites of machine learning?
What are prerequisites of machine learning? How to get started with machine learning? In this tutorial we will explains you the prerequisite of machine... machine learning. Machine learning is latest is programming and it deals
What are prerequisites of machine learning?
What are prerequisites of machine learning? How to get started with machine learning? In this tutorial we will explains you the prerequisite of machine... machine learning. Machine learning is latest is programming and it deals
Tattoo Machine
Tattoo Machine: Power to Design on Human Body Before a tattoo machine... to the skin of human body. Reilly's machine was based on the technology of Thomas... use electromagnets in a tattoo machine. Tattoo machines are basically classified
Java Virtual Machine Technology
Java Virtual Machine Technology Java development kit termed as  JDK have more than one implementation of the JVM. Java HotSpot Client VM also termed.... This is the Virtual machine implementation comes with JDK.It is basically designed to cut
ModuleNotFoundError: No module named 'Chern-Machine'
ModuleNotFoundError: No module named 'Chern-Machine'  Hi, My... 'Chern-Machine' How to remove the ModuleNotFoundError: No module named 'Chern-Machine' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'date_machine'
ModuleNotFoundError: No module named 'date_machine'  Hi, My Python... 'date_machine' How to remove the ModuleNotFoundError: No module named 'date_machine' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'game-machine'
ModuleNotFoundError: No module named 'game-machine'  Hi, My Python... 'game-machine' How to remove the ModuleNotFoundError: No module named 'game-machine' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'machine-learning'
ModuleNotFoundError: No module named 'machine-learning'  Hi, My... named 'machine-learning' How to remove the ModuleNotFoundError: No module named 'machine-learning' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'merge-machine'
ModuleNotFoundError: No module named 'merge-machine'  Hi, My... 'merge-machine' How to remove the ModuleNotFoundError: No module named 'merge-machine' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'micropython-machine'
ModuleNotFoundError: No module named 'micropython-machine'  Hi, My... named 'micropython-machine' How to remove the ModuleNotFoundError: No module named 'micropython-machine' error? Thanks   Hi
ModuleNotFoundError: No module named 'micropython-machine'
ModuleNotFoundError: No module named 'micropython-machine'  Hi, My... named 'micropython-machine' How to remove the ModuleNotFoundError: No module named 'micropython-machine' error? Thanks   Hi
ModuleNotFoundError: No module named 'OpenAddresses-Machine'
ModuleNotFoundError: No module named 'OpenAddresses-Machine'  Hi...: No module named 'OpenAddresses-Machine' How to remove the ModuleNotFoundError: No module named 'OpenAddresses-Machine' error? Thanks   Hi
ModuleNotFoundError: No module named 'plot-machine'
ModuleNotFoundError: No module named 'plot-machine'  Hi, My Python... 'plot-machine' How to remove the ModuleNotFoundError: No module named 'plot-machine' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'plot-machine'
ModuleNotFoundError: No module named 'plot-machine'  Hi, My Python... 'plot-machine' How to remove the ModuleNotFoundError: No module named 'plot-machine' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pycopy-machine'
ModuleNotFoundError: No module named 'pycopy-machine'  Hi, My... named 'pycopy-machine' How to remove the ModuleNotFoundError: No module named 'pycopy-machine' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'sausage-machine'
ModuleNotFoundError: No module named 'sausage-machine'  Hi, My... named 'sausage-machine' How to remove the ModuleNotFoundError: No module named 'sausage-machine' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'sight-machine'
ModuleNotFoundError: No module named 'sight-machine'  Hi, My... 'sight-machine' How to remove the ModuleNotFoundError: No module named 'sight-machine' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'slack-machine'
ModuleNotFoundError: No module named 'slack-machine'  Hi, My... 'slack-machine' How to remove the ModuleNotFoundError: No module named 'slack-machine' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'sound-machine'
ModuleNotFoundError: No module named 'sound-machine'  Hi, My... 'sound-machine' How to remove the ModuleNotFoundError: No module named 'sound-machine' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'state_machine'
ModuleNotFoundError: No module named 'state_machine'  Hi, My... 'state_machine' How to remove the ModuleNotFoundError: No module named 'state_machine' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'todotxt-machine'
ModuleNotFoundError: No module named 'todotxt-machine'  Hi, My... named 'todotxt-machine' How to remove the ModuleNotFoundError: No module named 'todotxt-machine' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'ts-machine'
ModuleNotFoundError: No module named 'ts-machine'  Hi, My Python... 'ts-machine' How to remove the ModuleNotFoundError: No module named 'ts-machine' error? Thanks   Hi, In your python environment you

Ads