Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners washing machine
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


jamseerabeegam
washing machine
1 Answer(s)      4 years ago
Posted in : Java Beginners


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


Advertisement
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();
  }
}


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
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
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
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
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
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
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
Portal Development Environment in local machine [Open Source]
Portal Development Environment in local machine [Open Source]  Hello, I am Java with Eclipse and WebSphere Portal using guy. I use them at office. What are the best related open source softwares' to use at home? To explore
Getting list of Local Interfaces on a machine
Getting list of Local Interfaces on a machine... to find out the total no of list of local interfaces available on a machine. Here... the list of local interfaces with the machine name and machine IP Address. Here
Connect a linux machine from linux using java program without password
Connect a linux machine from linux using java program without password  Connect a linux machine from linux using java program without password. Can anyone help me
How to Communicate with the operating system embedded on processor running on hardware machine in java
How to Communicate with the operating system embedded on processor running on hardware machine in java  hello Sir, i have a operating system embedded on processor running on hardware machine .Now as per my need i
java vertual machine launcher error; cannot access jarfiles
java vertual machine launcher error; cannot access jarfiles  Hi I am getting a error while running Dos bat file Error showing as error; cannot access jarfiles D\Documents Please help Regards GP
File Upload in J2ee on solaris machine using sftp - JSP-Servlet
File Upload in J2ee on solaris machine using sftp  Hi, Currently we are using FTP to upload the file from our J2EE web application... machine. Please let us know, how can we accomplish this requirement? We are using
File download from server to client machine - JSP-Servlet
File download from server to client machine  hi, I want to save a pdf file to my client machine from a button provoded in a jsp page.The file... location to client machine by save dialog box. Please help me to find a solution
Reading from remote files using PHP,Ubuntu and Windows machine.
Reading from remote files using PHP,Ubuntu and Windows machine.  Hi, Great work you doing here and I totally love the look and feel of the new site... on a windows machine within the same network. After reading from it, the script
how retrive data from google analystics dashbord on the client machine
how retrive data from google analystics dashbord on the client machine   sir i am digvijay subj: retrive data from google analystics dashbord respected sir, According above subject i request you , i want retrive data from
Overview of Networking through JAVA,Getting list of Local Interfaces on a machine
Getting list of Local Interfaces on a machine... to find out the total no of list of local interfaces available on a machine. Here... the list of local interfaces with the machine name and machine IP Address. Here
How to solve concurrency issue when an application is running on two machine to fetch record from one database
How to solve concurrency issue when an application is running on two machine... it. I want to make sure that when application run on two machine are not fetching/processing same record at the same time. for example: if one machine fetches
Advertisements
 

 

 

DMCA.com