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: "+ 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();
    }
}









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 quiz - Java Beginners
identification quiz  what is the html java code for a identification quiz? plz help me..  Hi Friend, Please clarify your question. Thanks
Advertisements
identification of buffer overflow
identification of buffer overflow  java program for how to track an array declaration in an input program
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
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
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
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 '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
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
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
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 Repository/Dependency: com.thomashaertel | android-device-identification
Maven Repository/Dependency of Group ID com.thomashaertel and Artifact ID android-device-identification. Latest version of com.thomashaertel:android-device-identification dependencies. # Version Release Date
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
Chaldean universal identification names compilator on the applications for Funtepoz civilization
Chaldean universal identification names compilator on the applications for Funtepoz civilization  maybe this code can be converted in any other language except in javascript and VBA: public object Tryme(mycell) { mylen
problem in validation
problem in validation  sir/madam, i m using struts-1.3.10. i m getting a problem my properties file is not found.... while i hav configuired it in struts-config.xml file, likeADS_TO_REPLACE_1 thanks n regards himanshu
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
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
Problem with cookies
Problem with cookies  Hello All, i need jsp code for RememberMe module of login. i am facing problem with cookies. so please if any one could guide me please help and provide mme the exact code.   Please visit
problem with package
problem with package  Dear sir, i have created one java file with package com.net; and i compiled the program.it showing the .class file in " net" folder.The problem is i want to use that .class file in some other
Oracle9i Problem
Oracle9i Problem  Hi I have a problem in Oracle9i .I have... the table what i created .But after closing the SQL+ ,the problem started.When i... .....;.it is saying no rows are selected.Why the problem arised in not getting the data that i
problem on php
problem on php   l have five tables and build them as forms and link between them php and database and i want to build query between them plz help me soon   PHP MySQL Tutorials
URL problem
URL problem  Hi. I have created a webpage for my project website. in that i have used frameset to split the page. Now if i click any link in the page its navigating to the another page. but the problem is here in the url its
problem with session.invalidate()
problem with session.invalidate()  i stuck by a line with "session.invalidate()", after user logout also by pressing the back button of the browser user is still able to navigate to his home page and able to view the session
JScrollBar Problem...
JScrollBar Problem...  Hello Sir/mam, Can i know how to use JScrollBar to JFrame without adding any JPanel to it.. i want to add JScrollBar Directly to JFrame... Please Provide me Simple Example so i can understand
Is AI a problem?
Is AI a problem?  Hi, I am beginner in Data Science and machine learning field. I am searching for the tutorials to learn: Is AI a problem? Try... "Is AI a problem?". Also tell me which is the good training courses
Skyline Problem
is the line tracing the largest y value from any rectangle in S The Problem: Write.... Your method should solve the problem three different ways; each solution
Problem in Array
Problem in Array  Hi, Can you help me with this problem? Run a program that check if the input string contains equal number of A's and B's. Hoping for your answer.Thank you.   Here is an example that check
problem
Problem
Problem
problem

Ads