PROBLEM IDENTIFICATION

Ads
 

PROBLEM IDENTIFICATION

class MOrders { int nooforders; // Data members of the class public int getorder() { nooforders = 500; } public void displayorders() { System.out.println("The number of orders to be delivered: "+ nooforders); } public static void main(String args[]) { MOrders obj = new MOrders (); obj.getorder(); obj.displayorders(); } }

when this code is compliled it shows errors.Indentify and document the changes

View Answers

February 10, 2011 at 2:29 PM

In your code, return statement was missing.

Here is the code:

class MOrders {
int nooforders;

 public int getorder() {
     nooforders = 500; 
     return nooforders;
     } 
     public void displayorders() {
         System.out.println("The number of orders to be delivered: "+ nooforders); 
         } 
         public static void main(String args[]) {
             MOrders obj = new MOrders ();
             obj.getorder(); 
             obj.displayorders();
    }
}

Ads









Related Tutorials/Questions & Answers:
PROBLEM IDENTIFICATION
PROBLEM IDENTIFICATION  class MOrders { int nooforders; // Data members of the class public int getorder() { nooforders = 500; } public void displayorders() { System.out.println("The number of orders to be delivered
identification of buffer overflow
identification of buffer overflow  java program for how to track an array declaration in an input program
Advertisements
ModuleNotFoundError: No module named 'bold-identification'
ModuleNotFoundError: No module named 'bold-identification'  Hi, My... named 'bold-identification' How to remove the ModuleNotFoundError: No module named 'bold-identification' error? Thanks   Hi
ModuleNotFoundError: No module named 'replay-identification'
ModuleNotFoundError: No module named 'replay-identification'  Hi...: No module named 'replay-identification' How to remove the ModuleNotFoundError: No module named 'replay-identification' error? Thanks   Hi
fingerprint identification system on java
fingerprint identification system on java  sir i want full "fingerprint ateendance management" project on java please send me source code i am asking so many members but nobody send answer one of my friend suggest ask question
SMART VEHICLE ROAD SIGN IDENTIFICATION
SMART VEHICLE ROAD SIGN IDENTIFICATION  JAVA code for "SMART VEHICLE ROAD SIGN IDENTIFICATION
Version of com.thomashaertel>android-device-identification dependency
List of Version of com.thomashaertel>android-device-identification dependency
ModuleNotFoundError: No module named 'archtype-user-identification'
ModuleNotFoundError: No module named 'archtype-user-identification'  ...: No module named 'archtype-user-identification' How to remove the ModuleNotFoundError: No module named 'archtype-user-identification' error
ModuleNotFoundError: No module named 'archtype-user-identification'
ModuleNotFoundError: No module named 'archtype-user-identification'  ...: No module named 'archtype-user-identification' How to remove the ModuleNotFoundError: No module named 'archtype-user-identification' error
ModuleNotFoundError: No module named 'odoo10-addon-partner-identification'
ModuleNotFoundError: No module named 'odoo10-addon-partner-identification' ...: ModuleNotFoundError: No module named 'odoo10-addon-partner-identification' How to remove...-identification' error? Thanks   Hi, In your python environment you have
ModuleNotFoundError: No module named 'odoo10-addon-partner-identification'
ModuleNotFoundError: No module named 'odoo10-addon-partner-identification' ...: ModuleNotFoundError: No module named 'odoo10-addon-partner-identification' How to remove...-identification' error? Thanks   Hi, In your python environment you have
ModuleNotFoundError: No module named 'odoo11-addon-partner-identification'
ModuleNotFoundError: No module named 'odoo11-addon-partner-identification' ...: ModuleNotFoundError: No module named 'odoo11-addon-partner-identification' How to remove...-identification' error? Thanks   Hi, In your python environment you have
ModuleNotFoundError: No module named 'odoo11-addon-partner-identification'
ModuleNotFoundError: No module named 'odoo11-addon-partner-identification' ...: ModuleNotFoundError: No module named 'odoo11-addon-partner-identification' How to remove...-identification' error? Thanks   Hi, In your python environment you have
ModuleNotFoundError: No module named 'odoo12-addon-partner-identification'
ModuleNotFoundError: No module named 'odoo12-addon-partner-identification' ...: ModuleNotFoundError: No module named 'odoo12-addon-partner-identification' How to remove...-identification' error? Thanks   Hi, In your python environment you have
ModuleNotFoundError: No module named 'odoo12-addon-partner-identification-gln'
ModuleNotFoundError: No module named 'odoo12-addon-partner-identification-gln...: ModuleNotFoundError: No module named 'odoo12-addon-partner-identification-gln' How...-identification-gln' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'odoo8-addon-hr-employee-identification'
ModuleNotFoundError: No module named 'odoo8-addon-hr-employee-identification...: ModuleNotFoundError: No module named 'odoo8-addon-hr-employee-identification' How...-identification' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'odoo8-addon-partner-identification'
ModuleNotFoundError: No module named 'odoo8-addon-partner-identification' ...: ModuleNotFoundError: No module named 'odoo8-addon-partner-identification' How to remove the ModuleNotFoundError: No module named 'odoo8-addon-partner-identification
ModuleNotFoundError: No module named 'odoo8-addon-partner-identification'
ModuleNotFoundError: No module named 'odoo8-addon-partner-identification' ...: ModuleNotFoundError: No module named 'odoo8-addon-partner-identification' How to remove the ModuleNotFoundError: No module named 'odoo8-addon-partner-identification
ModuleNotFoundError: No module named 'odoo8-addon-partner-identification-gln'
ModuleNotFoundError: No module named 'odoo8-addon-partner-identification-gln...: ModuleNotFoundError: No module named 'odoo8-addon-partner-identification-gln' How...-identification-gln' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'odoo10-addon-partner-identification'
ModuleNotFoundError: No module named 'odoo10-addon-partner-identification' ...: ModuleNotFoundError: No module named 'odoo10-addon-partner-identification' How to remove...-identification' error? Thanks   Hi, In your python environment you have
ModuleNotFoundError: No module named 'odoo12-addon-partner-identification'
ModuleNotFoundError: No module named 'odoo12-addon-partner-identification' ...: ModuleNotFoundError: No module named 'odoo12-addon-partner-identification' How to remove...-identification' error? Thanks   Hi, In your python environment you have
ModuleNotFoundError: No module named 'odoo13-addon-partner-identification'
ModuleNotFoundError: No module named 'odoo13-addon-partner-identification' ...: ModuleNotFoundError: No module named 'odoo13-addon-partner-identification' How to remove...-identification' error? Thanks   Hi, In your python environment you have
ModuleNotFoundError: No module named 'odoo8-addon-partner-identification-gln'
ModuleNotFoundError: No module named 'odoo8-addon-partner-identification-gln...: ModuleNotFoundError: No module named 'odoo8-addon-partner-identification-gln' How...-identification-gln' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'odoo9-addon-partner-identification'
ModuleNotFoundError: No module named 'odoo9-addon-partner-identification' ...: ModuleNotFoundError: No module named 'odoo9-addon-partner-identification' How to remove the ModuleNotFoundError: No module named 'odoo9-addon-partner-identification
Maven Dependency android-device-identification >> 0.0.2
You should include the dependency code given in this page to add Maven Dependency of com.thomashaertel >> android-device-identification version0.0.2 in your project
Maven Dependency android-device-identification >> 0.0.1
You should include the dependency code given in this page to add Maven Dependency of com.thomashaertel >> android-device-identification version0.0.1 in your project
problem in onlinetest...
problem in onlinetest...  hi, my code getting the problem is ,when user leave a question then the server puts error... pls help me
javascript problem
javascript problem  hi guys My problem is that I am using radio button for yes or no but i want to do that if I press yes button then enter... enter please help me this problem
problem on strings
problem on strings  in string1 "123456 ABC DEF...",IN string2 "raveen". iwant to add string2 after 123456 in the first string based on index number.i need logic for this with out using StringBuffer concept. Thanks in advanace
Problem with loginbean.jsp
Problem with loginbean.jsp  http://www.roseindia.net/jsp/loginbean.shtml - I am getting an error in loginbean.jsp.There is some error regarding .What is hello in this? Also in this example how
compilation problem
compilation problem  struts 2.0 : i have included all 5 jars in lib folder,but its giving compilation problem that package open symphony doesnot... havenot set the build path.if this is the problem then tell me how to set

Ads