About key word return

Hi;
Iam very confused about the use of the key word return. I understand its functionality when it returns some value.But what's the case when we use it in the following way:
if(some testcase)
return;
Also where will return leads to when we use only return in a method that has void return type.

Hi;
Iam very confused about the use of the key
word return. I understand its functionality when it
returns some value.But what's the case when we use
it in the following way:
if(some testcase)
return;:eek:
IMO a ``test case'' is not a language construct.
http://en.wikipedia.org/wiki/Test_case

Similar Messages

  • Return key word

    i know that when u write a mutator method ie getter that you specify the return type and u can specify the key word return.
    but am still confused about when you you sholud use it, i know that people say when u want to return a value , but that still doesn't explain it enough how do u know if u want to return a value..
    thanks

    i mean if a method had to perform a calculation and
    then the result had to be used else where in the
    program i would use the return keyword but thats the
    only case i know about
    public class bukaroo
      public static void main (String[] args)
        bukaroo b = new bukaroo();
        String theQuestion = "Why is dustpan sooooo cool?";
        String theAnswer =  bukaroo.AnswerMyQuestion( theQuestion );
        System.out.println("Aha, The answer is: "+theAnswer);
      public String AnswerMyQuestion(String myQuestion)
        String answer = JOptionPane.showMessageDialog(null, myQuestion, "My Question is:", JOptionPane.QUESTION_MESSAGE);
        return answer;

  • What is use of LOAD key word in ABAP-HR

    what is use of LOAD key word in ABAP-HR?

    Hi,
    LOAD keyword is used to load all the parameter values.
    Basic form
    LOAD REPORT prog PART part INTO itab.
    Variants
    1. LOAD REPORT prog PART 'HEAD' INTO itab.
    2. LOAD REPORT prog PART 'TRIG' INTO itab.
    3. LOAD REPORT prog PART 'CONT' INTO itab.
    4. LOAD REPORT prog PART 'DATA' INTO itab.
    5. LOAD REPORT prog PART 'DDNM' INTO itab.
    6. LOAD REPORT prog PART 'DATV' INTO itab.
    7. LOAD REPORT prog PART 'SELC' INTO itab.
    8. LOAD REPORT prog PART 'STOR' INTO itab.
    9. LOAD REPORT prog PART 'LITL' INTO itab.
    10. LOAD REPORT prog PART 'SYMB' INTO itab.
    11. LOAD REPORT prog PART 'LREF' INTO itab.
    12. LOAD REPORT prog PART 'SSCR' INTO itab.
    13. LOAD REPORT prog PART 'BASE' INTO itab.
    14. LOAD REPORT prog PART 'INIT' INTO itab.
    15. LOAD REPORT prog PART 'DATP' INTO itab.
    16. LOAD REPORT prog PART 'TXID' INTO itab.
    17. LOAD REPORT prog PART 'COMP' INTO itab.
    Effect
    Loads the specified part of the generated version of the program prog into the internal table itab (for analysis purposes only).
    The return code value is set as follows:
    SY-SUBRC = 0 The load for the program prog exists and is current.
    SY_SUBRC = 4 The load for the program prog does not exist.
    SY-SUBRC = 8 The load for the program prog exists, but is not current. In some cases, this SY-SUBRC may mean that the program load has been destroyed. You can resolve this by generating the program. With PART 'LREF' , SY-SUBRC = 8 means that the line reference table is incorrect for the program. With PART 'CONT' , it means that the reference part of the internal table is empty.
    itab has been filled only if SY-SUBRC = 0 .
    Reward points if useful.
    Regards,
    Sekhar

  • Not understanding "synchronized key word"

    Hello all,
    I have a singleton class as below
    package test;
    public class TestClass {
        private final static TestClass testClass = new TestClass();
        private TestClass() {
            super();
            // TODO Auto-generated constructor stub
        public static TestClass getInstance() {
            return testClass;
        public  synchronized void keepRunning() {
            for (int i = 0; i < 10454564564l; i++) {
                for(int j=0 ; j<242342342342l;j++){
                    System.out.println(j);
    }And two other classes which take the reference and call keepRunning simultaneously as shown
    package test;
    public class TestClass1 {
        public TestClass1() {
            super();
            // TODO Auto-generated constructor stub
         * @param args
        public static void main(String[] args) {
            TestClass testClass = TestClass.getInstance();
            testClass.keepRunning();
    }and
    package test;
    public class TestClass2 {
        public TestClass2() {
            super();
            // TODO Auto-generated constructor stub
         * @param args
        public static void main(String[] args) {
            TestClass testClass = TestClass.getInstance();
            testClass.keepRunning();
    }Now if i run both TestClass1 and TestClass2, i can see sysouts from both the programs. I am not able to understand Why synchronized key word allowing TestClass2 to acess the code.(As there are no shared variable)

    ohhhhhhhhhhh!!!!! Sorry ! I am ashamed of myself!! :-(

  • I would like to know what application I should use for this specific job.  I have 6 photos in Iphoto, and I would like to print them out on one piece of paper with the title and key words showing.  Please help.

    My objective is to print photos on on 8 1/2 x 11 sheets of paper (4 per page).  I want to include the photo title and the photo key words.
    I am not sure how to go about doing this.

    In iPhoto, create an album with the images you want to print.
    Once created, open the album and select all the images (type Command + A)
    Go to the menu View and make sure Titles and Keywords are checked.
    Go to the menu File > Print
    Choose Contact Sheet
    In the lower right corner press the customize button
    In the next window that opens, at the bottom of the window change the column slider to "2"
    You should be good to go. If OK, then press Print at the bottom right corner of the window.
    MtD
    Message was edited by: Meg The Dog to fix typo

  • 2.1 Quirky Key Words

    SQLDeveloper never aligned PLS_INTEGER data types with the rest of my variable decelerations, but I was too happy/distracted with CONSTANT finally being aligned that I never posted about it. Got some free time so I thought I'd ask:
    (1) Is it a bug that causes certain data types to be treated differently when aligning?
    (2) Is it a bug that certain key words are highlighted but aren't converted to upper case when I have it set to convert key words to upper?
    (3) Is there a file somewhere that I can modify and have SQLDeveloper treat certain key words in certain ways?
    (3.1) PLS_INTEGER doesn't get highlighted, or aligned.
    (3.2) CONSTANT gets highlighted and is aligned, but doesn't convert to upper case.
    (3.3) DATE highlights, converts to uppercase, but doesn't align.
    Personally I'd like to see all 3 words above be treated the same way.
    --How it's formatting
    DECLARE
      lv_one DATE;
      lv_twoooooooo NUMBER;
      lv_three      VARCHAR2(30) ;
      lv_four       VARCHAR2(32767) ;
      lv_five pls_integer;
      lv_fiveandahalf pls_integer;
      lv_six constant NUMBER;
      lv_seven DATE;
      lv_eightpoint5 DATE;
      lv_eighttttttttt constant DATE;
      lv_nine          NUMBER;
      lv_ten           VARCHAR2(30) ;
    BEGIN
      NULL;
    END;
    /

    Hi Steve,
    Try the general tips in this article: http://support.apple.com/kb/HT1650 under *Buttons and Switches*.
    Also, remove any protective cases or films from the iPhone that might be covering the volume button.
    If the issue persists, the iPhone will need hardware repair. Just contact SingTel to get the iPhone repaired in Singapore. This article: http://support.apple.com/kb/HT2251 provides more information about Singapore Online Support Resources.
    -Jason

  • Submit key word

    Hi all,
    I have written my submit key word like this
    SUBMIT ZFWATCH6 WITH P_EVENID = IT_FILEDIR-ZEVENT
                    WITH  P_EVNTPM = IT_FILEDIR-ZPARAMETER
                    AND RETURN.
    after executing my program this submit program have write statement my cursor is not moving back to main program from this write statement . Can any one help me in this issue?

    Srinivas ,
    I got it  I have to write like this
    SUBMIT ZFWATCH6 WITH P_EVENID = IT_FILEDIR-ZEVENT
                    WITH  P_EVNTPM = IT_FILEDIR-ZPARAMETER
                    AND RETURN EXPORTING LIST TO MEMORY.
    As always , thanks for your help.

  • Regarding key word "Table_line"

    Hi abapers,
    I came across a key word "TABLE_LINE".
    I am able to understand that it is a pseudo component but unable to understand anything more about it.
    Can u people explain me about its use with a sample code.
    Also I came across standard, sorted and hashed table and their syntax. i saw keywords such as "ANY TABLE" and "INDEX TABLE". please give a code snippet about their usage and importance also their purpose.

    Hi Lucky,
    TABLE_LINE:
    In internal tables, you can generally address the entire table row in a key specification by using the pseudo component TABLE_LINE. This is particularly useful for tables whose line type does not have a structure.
    You can, for example, define a
    sorted table of integers as follows and process it in a loop with a WHERE condition:
    DATA: wa   TYPE i,
          itab TYPE SORTED TABLE OF i WITH UNIQUE KEY TABLE_LINE.
    LOOP AT itab INTO wa WHERE KEY table_line > 5.
    ENDLOOP.
    As TABLE_LINE is similar to a row component, the underlying row structure should not contain a component of the same name.
    The old form TABLE LINE (without the underscore) is obsolete. SAP was unable to provide continued support since this form does not allow you to use references in tables to access attributes of the object referenced.
    In ABAP Objects, that is, classes and class pools, a stricter syntax check is performed.
    In the following example, ITAB is a table of object references. The associated class has an attribute NAME. You can access this attribute by specifying TABLE_LINE->NAME in a LOOP statement.
    CLASS my_class DEFINITION.
      PUBLIC SECTION.
      DATA: name TYPE string.
    ENDCLASS.
    DATA: wa   TYPE REF TO my_class,
          itab TYPE TABLE OF REF TO my_class.
    CREATE OBJECT wa. wa->name = 'Hugo'.  INSERT wa INTO TABLE itab.
    CREATE OBJECT wa. wa->name = 'Nora'.  INSERT wa INTO TABLE itab.
    CREATE OBJECT wa. wa->name = 'Jimmy'. INSERT wa INTO TABLE itab.
    CREATE OBJECT wa. wa->name = 'Nora'.  INSERT wa INTO TABLE itab.
    LOOP AT itab INTO wa WHERE table_line->name = 'Nora'.
    ENDLOOP.
    For the remaining things check the following link:
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb366d358411d1829f0000e829fbfe/content.htm
    Hope this helps you.
    Regards,
    Chandra Sekhar

  • Table to see unassigned Key word GL list

    Hello,
    There is near about 4000 GLs in 1000 chart of account, client has given the u201Ckey wordu201D in OTHER TAB to some GL while creating in FS00. Now I want to see the list of those GL to which the key words are not defined... I tried in Table u201CSKASu201D but it showing key word assigned GLs list only but not unassigned key word GL list..
    Please replyu2026

    Hi ,
    SKAS holds the entry only for assigned ley words GL account .
    Need to take a dump of SAK1 and compare the same with the entries in SKAS - Left over entries you need to enter the keywords .
    Cheers ,
    Dewang

  • Migrating from Extensis to AP 3 - key word challenge

    I bought AP 3.x and am migrating all of my photos from Extensis Portfolio. I am using the "referenced file" approach. I want AP to see all of the key words I added while my photos were managed by Extensis. To do this, I embedded my key words into the photo files within Extensis. Then I simply open up AP to see the difference. The problem is that AP seems to just process my updated photos in chunks or batches (300 or so files). When I minimize AP, then return to it, it processes another batch. This seems more manual than it should. Is there a setting I can make within AP so it processes all the files in one session?

    Sounds like Aperture is still Processing the install. Allan

  • 3.0 EA3, Key-Words should not be translated at all.

    Hi all,
    at first my compliment to the dev team. The raptor is about to fledgeup ....
    A little hint (not a real problem):
    From the Schema Browser chose a table (mark it via mouse) and Drag it into the SQL area. A dialog box appears with radio buttons to pick up the action of your choise.
    In german the translation is a bit silly. Don't translate these texts here - it makes no sense.
    OK is: Insert = INSERT and update = UPDATE.
    But "Löschen"= DELETE is strange, and "Wählen" = SLECT is simply silly at all.
    To make a long story short, Key-Words should not be translated at all.
    Thank you!
    Andre

    Unfortunately, the custom style sheet "feature" is still horribly broken, even in the latest 3.0.3. Setting a file in the preferences still doesn't set the correct URI in the preferences (either that, or Safari still doesn't know how to use a Windows file path to locate the style sheet).
    I'm also encountering problems where Safari will crash when using an ad blocking custom stylesheet.
    Also, when having the custom stylesheet set, trying to use the "Inspect Element" feature will crash Safari.

  • Assign key words to a directory.

    Is there anyway to catalogue a directory - maybe with key words or equivalent??  I have 560,000 images in about 3000 directories spread over 10 TB fo disk space.  Essentally each directory is a shooting project.  It would be nice to associate key words with the directories.  This would allow simple retrieval of, for example,  "all directories that contain SHOWJUMPING in ALBERTA in the WINTER".  This would greatly assist me in finding images based on a customer request - or for my organization of art projects.

    The only way I have found a workaround is to use a stack.
    Copy and paste a jpeg image in the directory or subdirectry.  Change the name to the directry and add a keyword to search by.  Then stack with directroy.  You can put in underneath so it does not show.
    When you do a find (right clck on keyword and choose find to eliminate typing errors) it will bring up the jpeg.  Seems to only work 2 directorys down, so experiment.
    The other option is to use a script.  I am really ignorant of scripts so visit the Bridge Scripting forum.

  • Java reserved key words method

    Is there any built in method in java that take a string as an argument and returns a boolean depending on whether the passed strig is a java reserved key word or not. for eg..if string such as "public", "class","int"..etc is passed to such a method then it returns true...I would appreciate if someone could help me out with this one..my email is [email protected]

    not as far as i know. but it should not be a great prob to write this method on your own. a quick search brought me to that url:
    http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html
    so, now its really easy to write this method, isnt it?

  • I am trying to update my itunes and iphone. Everytime I trie comes out a message about 'key access'. I've done all the steps from the support and nothing worked out. I cannot unistall and now I can't open it anymore also. What should i do, please?

    I am trying to update my itunes and iphone. Everytime I trie comes out a message about 'key access'. I've done all the steps from the support and nothing worked out. I cannot unistall and now I can't open it anymore also. What should i do, please?

    Isn't that only used when a PC will not boot?
    What options does booting with this give me?
    Thanks
    JK MCP
    Hi,
    USB recovery disk was used to recover your system when it encounter problem. You can try to use it to fix your problem instead reinstall system. However, there is no method to keep your program whenreinstall system.
    Roger Lu
    TechNet Community Support

  • Creating Materialized View with the Distinct key word

    Hi
    I need help to create Materialized View with the Distinct key word.
    my query is
    select distinct col1, col2 from t1;
    is there any alternate of DISTINCT because I can not refresh the MV as fast on demand if I am using it and Fast on Demand is a must for me.

    hi
    check out this link
    http://download-west.oracle.com/docs/cd/B12037_01/server.101/b10736/basicmv.htm#i1007299
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/intro.htm#sthref183
    hope this helps
    CHeers

Maybe you are looking for

  • Is it possible to prevent the history from moving entries up to the top of the list when a site is revisited, and why does it only do this sometimes?

    * Sometimes the history appears to compile previous visits to a site into only the entry for the most recent visit, but other times it does not. In other words, sometimes when a site is re-visited, the history will move a previous visit to that site

  • Apple TV Tp Panasonic

    Hi can any one help i need to know how to connect my apple tv to my panasonic viera plasma Thank you

  • UPDATE: Clip Moves on Test Movie

    My original post is below. Since then, I have discovered that the issue only appears when I test the movie. If I open the resulting .swf file by clicking, it plays fine. I still think this is pretty darn odd, but at least I was able to continue with

  • How to read ducument flow (VBFA) using FM ?

    Hi all, I need to retrieve records from vbfa table by passing value only to VBELN field. Since VBELV is the first key field, Performance issue is there if we pass value only to VBELN field. This is displayed as an error in SCI. Is there any Released

  • Mension time of report delivery

    while scheduling the reports where do i need to mension the executiontime of the report and deliver to users. Ex: if i want to deliver my report to users at morning 600 am where do i need to mension this time in the delivers to deliver the report at