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 code - Framework
atm machine code  plz send me the code of atm machine in c#.reply
Advertisements
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
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
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
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
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
detection of the operating system on the client machine
detection of the operating system on the client machine  How to detect the operating system on the client machine
What is machine learning in Big Data?
What is machine learning in Big Data?  Hi, There is huge talk about Big Data and Machine learning. What is machine learning in Big Data? Thanks... can write program to tell machine to do certain processing of data
How is machine learning used in finance?
How is machine learning used in finance?  How is machine learning used in finance?   Hi, Machine learning is used in Fiance industry to do... Regression Logistic Regression Random Forests (RM) Support Vector Machine (SVM) k
Java Virtual Machine
Java Virtual Machine The Java Virtual Machine is a software package that comes with the JRE or JDK. It is a virtual machine which is responsible for running.... The JVM is responsible for compiling the the byte code for the machine on which
What is machine learning?
What is machine learning and its types? Machine learning is one... or analysis. In machine learning, Artificial Intelligence (AI) algorithms are used... explicit programming. AI technologies, machine learning and deep learning
Java Virtual Machine
Java Virtual Machine       In this section, you will learn about the java virtual machine (JVM) and how to work? Java Virtual Machine (JVM) Java Virtual Machine is a set of computer
What should I learn for machine learning?
What should I learn for machine learning?  Hi, I want to learn Machine learning. What should I learn for machine learning? Thanks   Hi, There are many language you choose from to learn Machine Learning. a) Apache
Apache Spark 2.2 Machine Learning Support
Apache Spark 2.2 Machine Learning Support  Hi, What is the new features of Spark 2.2? What all new API and updates has been updated to enhance machine learning in Spark 2.2? Thanks
Java Virtual Machine Free Download
Java Virtual Machine Free Download       The Java Virtual Machine is required to run your java program in your computer. The Java Virtual Machine software is freely downloadable from
Version of com.himanshuvirmani>java-state-machine dependency
List of Version of com.himanshuvirmani>java-state-machine dependency
Java Virtual Machine Free Download
Java Virtual Machine Free Download       Java Virtual Machine Free Download The Java Virtual Machine is required to run your java program in your computer. The Java Virtual
Save file on Client Machine - Development process
server machine and all the users of the application are accessing them as http://boserver:9090/AI where boserver is the name of server machine, now when a client from his machine try to save the file it gets saved in the serve machine i want
Is machine learning set to disrupt the finance industry?
Is machine learning set to disrupt the finance industry?  Hi, Big Data and Analytics comes with huge processing power. It comes with machine... industry. Is machine learning set to disrupt the finance industry? Thanks  
Discovery Machine Gear
Discovery Machine Gear       The Discovery Machine Modeler allows experts..., and leveraged. Discovery Machine Modeler our core knowledge acquisition
i want to copy files from one machine to other using java and the code will be running on third machine
i want to copy files from one machine to other using java and the code will be running on third machine  i want to copy some files from one machine say 'A' to some other machine say 'B' by using the java program running on third
Tomcat Server configuration with Eclipse at remote machine
same web application on remote machine by different users using different
Auto Teller Machine Emulator : (ATM Emulator)
Auto Teller Machine Emulator : (ATM Emulator)  following functionalities : a) Create an ATM cash deliver emulator application that will have... as input through ATM machine and give the cash amount. ATM machine has
HipHop Virtual Machine: The new and faster PHP virtual machine of Facebook
Facebook invented really fast PHP Virtual Machine The social networking giant Facebook has invented a really fast PHP Virtural Machine which will run... Machine), across all of its servers since 2013. To make the execution quick
Maven Dependency java-state-machine >> 1.0.0
You should include the dependency code given in this page to add Maven Dependency of com.himanshuvirmani >> java-state-machine version1.0.0 in your project
Maven Dependency java-state-machine >> 1.0.1
You should include the dependency code given in this page to add Maven Dependency of com.himanshuvirmani >> java-state-machine version1.0.1 in your project
Maven Dependency java-state-machine >> 1.0.2
You should include the dependency code given in this page to add Maven Dependency of com.himanshuvirmani >> java-state-machine version1.0.2 in your project
Maven Dependency java-state-machine >> 1.0.3
You should include the dependency code given in this page to add Maven Dependency of com.himanshuvirmani >> java-state-machine version1.0.3 in your project
Maven Dependency java-state-machine >> 1.0.4
You should include the dependency code given in this page to add Maven Dependency of com.himanshuvirmani >> java-state-machine version1.0.4 in your project

Ads