How to use char in the return type

public class Implement{
public char Imp (char a[10]){
}

in JAVA how to define a NULL charactor???It depends what you mean. char is a primitive, and so it cannot have a value of null. If you need a value of null, you could use a Character, rather than char.
On the other hand, if you mean "the null character"--the char whose bits are all zero--then char ch = '\0';Edit: Oh, yeah, a simple 0 as DrLJ suggested will work too.
Message was edited by:
jverd

Similar Messages

  • How to use objects as a message type in WSDL?

    How can I use object as a type for the message in WSDL?
    For example, I want to achieve something like this:
    <message name="DBConnection">
    <part name="conn" type="???"/>
    </message>
    In the above example, for any operation getConnection(), the return type would be an object of the type Connection.
    Any suggestions ?
    Thanks,
    Dhaval

    Hi,
    Listed below is the step by step intructions to configure the Nokia device as a modem to a mac.
    Steps:
    Connecting your Mac to the internet is convenient and easy with your a compatible Nokia S60 device. You'll need a Nokia S60 device that supports a 2G or 3G data connection (such as GPRS or HSDPA), a compatible Mac (with the latest OS X), a USB cable for your Nokia device or a Bluetooth-enabled Mac, and a network subscription with your mobile service provider.
    To set up your device you'll need to know your operator's Access Point Name (APN) and have the packet data service enabled. For help with this please contact your operator.
    In Settings select and open Connection >Select and open Packet data > Select and open Access point >Type in your operator's Access Point Name
    Exit Settings. Your device is now ready to be used as a modem for your Mac!
    Bluetooth Connection: Pairing between Mac and Device using bluetooth, follow the instruction from here: http://europe.nokia.com/get-support-and-software/download-software/device-as-a-modem/connect-to-your...
    Note: Preferred mode is USB as it much faster than Bluetooth.
    Connect the device and then go to System preferences- >Network- >Select Device (Nokia XXX)
    Click on Advanced Tab > Modem tab
    - Vendor : Nokia
    -Model:GPRS (GSM/3G)
    -Telephone Number: *99***1# (contact your operator to get this settings)
    -APN: airtelgprs.com (contact your operator to get this settings)
    CID: 1
    Once connected it will be highlighted in green.
    Hopefully this helps.
    Cheers
    Sandy
    Message Edited by sandy2410 on 30-Mar-2009 04:52 AM
    Helpful information, then dont forget to hit the kudos star :-) Or say it accepted solution and thanks

  • How to create a webservice with return type File

    Hi All,
    I have a class Letter and I am trying to expose viewReport as webservice.
    In Jdeveloper -> Business teir -> webservices -> Java web service and I have selected my method i.e. viewReport
    Now it throws error "The return type java.io.File of method viewReport can not be serialized into XML"
    I unserstood the issue but How can I achive this in JDeveloper
    public class Letter {
    public Letter() {
    super();
    public File viewReport(String name) {
    File folder = new File("C:\\APPS\\root\\pdf\\10052011");
    File[] listOfFiles = folder.listFiles();
    return listOfFiles[0];
    }

    You can't as File is nor serializable. It won't make sense as you would try to give a handle to a file on the server hosting the service to a remote system.
    Can you explain the use case in more detail?
    Timo

  • How to use clob or blob data type in OWB

    how to use clob or blob data type in OWB?
    if OWB not surport these data type,how can i extract the large data type from data source

    The same question was asked just two days ago No Data Found: ORA-22992
    Nikolai Rochnik

  • I just bought photoshop elements 13 last night. Today I am watching tutorial videos to show me how to use it, but the videos are showing me things I don't have. Asking me to click on tabs i don't have. Why is this? Is there another way I can learn? Or is

    I just bought photoshop elements 13 last night. Today I am watching tutorial videos to show me how to use it, but the videos are showing me things I don't have. Asking me to click on tabs i don't have. Why is this? Is there another way I can learn? Or is my download messed up and not giving me everything I need?

    Got a link showing us which video tutorials you're watching and examples of what's missing in your software?

  • How to use shortDesc in the disabled inputtext

    hi,all
    i encounter a problem,our team must use disabled inputtext when the text is only used to output string.
    the reson we don't use outputext is if there is noting in the outputtext,there is nothing displayed.
    how to use shortDesc in the disabled inputtext?
    here is the code:
    <af:inputText value="#{bindings.shortdesc.inputValue}" disable="true"
    id="ot2" columns="25" shortDesc="#{bindings.longdesc.inputValue}"
    simple="true"/>
    thanks all

    Hi,
    ........... I use JDev 11g ..............
    If you make your inputText disabled -----> shortDesc will not be displayed.
    You can make a workaround to achieve this by using popup as :
    1- add showPopupBehavior inside your inputText as :
    <af:inputText label="label1" id="it1" disabled="true">
                    <af:showPopupBehavior triggerType="mouseOver"
                                          align="endBefore" alignId="it1"
                                          popupId="p1"/>
                  </af:inputText>2- add a popup which will display your shortDesc text
    <af:popup id="p1">
                      <af:outputText value="Sameh POPUP" id="ot1"/>
              </af:popup>I hope it is useful.
    Sameh Nassar

  • How to use labview with the handyboard

    Hi,
    how to use labview with the handyboard
    Thx...

    I'm assuming you're talking about this, since you didn't provide a link for those of us who don't know what you're talking about.
    As the other poster said, you didn't say how you want to use LabVIEW with it.  If you want to write LabVIEW programs than run on the microprocessor, then you're out of luck.  If you want LabVIEW to interact with it, then you've got a couple of options, SPI probably being the best, but it also has DI and AI that you could use to communicate with it - the DI's could be used as a parallel interface.
    Message Edited by Matthew Kelton on 12-17-2007 02:21 PM

  • How to use PS to judge the existence of a folder in the specified directory and how to use PS in the specified directory to create to create the folder?(javascript)

    1,How to use PS to judge the existence of a folder in the specified directory?(use javascript)
    2, how to use PS in the specified directory to create to create the folder?(use javascript)
    Thanks you!

    Thanks you!

  • User exit Used while defining the storage type

    Hi all,
      Can anybody tell me about the user exit Used while defining the storage type.
    or what is the user exit name?
    i want to define my own strategy.
    i.e combine manual sut entry with strategy 'k'

    HI all I Got the Exit     MWMTO003.
    Now  ,
    Following Logic is to be built. (Storage type strategy is K for putaway.)
    u201CManually selection of SUTu201D while Putaway , For Strg -K SUT selection is
    system guided.
    Which componant is required for this. Pls guide.
    Is the above requirement is possible?
    Edited by: dev .. on Feb 19, 2009 1:58 PM

  • I downloaded the free trial for Adobe XI Pro but now I cant find it on my computer or figure out how to use it. The only thing I see that downloaded is Adobe Download Assistant. How can I access the program?

    I downloaded the free trial for Adobe XI Pro but now I cant find it on my computer or figure out how to use it. The only thing I see that downloaded is Adobe Download Assistant. How can I access the program?

    Assistanttolindsey the Adobe Download Assistant will download the installation files for Adobe Acrobat Professional XI.  By default they are saved to your download folder.  You can begin the installation process from there.

  • How to pass the value of the return type parameters in teststand sequence file programatically through c#

    I have used the method LoadProtoTypeFromMeteDataToken(tokenvalue,options).with this i cant set the value in the return parameters. How can I pass the value.with the above method it displays parameter Name,Type,In/Out. how can i set the value in the return parameters.

    Or here
    http://forums.ni.com/ni/board/message?board.id=330&thread.id=26979
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • How can I use comma in the return values of a static list of values

    Hi all,
    I want to create a select list (static LOV) like the following:
    Display Value / Return Value
    both are "Y" / 'YY'
    one is "Y" / 'YN','NY'
    I write the List of values definition is like this:
    STATIC:both are "Y"; 'YY',one is "Y";'YN', 'NY'
    However, it is explain by htmldb like this:
    Display Value / Return Value
    both are "Y" / 'YY'
    one is "Y" / 'YN'
    / 'NY'
    I tried using "\" before the ",", or using single or double quote, but all these do not work:(
    How can I use a comma in the return values?
    Thanks very much!

    "Better still, why not process the code of both Y with 2Y and one is Y with 1Y? "
    Could you please explain in detail? thanks! I am quite new to htmldb
    In fact I have a table which has too columns "a1" and "a2", both the values of these two columns are "Y" or "N". AndI want to choose the records that both a1 and a2 are "Y", or just one of a1, a2 is "Y".
    So I write the report sql like this:
    "select * from t1 where a1 || a2 in(:MYSELECTLIST) "
    Thus, I need to use "," in the LOV, since expression list in IN(,,,) using ",".
    Any other way to implement this?

  • How to use a non-standard true type font that won't be changed by the native environment on others' computers when they open the document?

    We are using a non-standard true type font (Zurich Ex BT) when creating a .pdf document but when others view it, the font is changed on their computers.  How do we use this font and keep it from being changed when others look at it?

    This is actually good stuff and well written but I hesitate to advise people to use either the "oven trick" or really even the heat gun method as both are notriously short-lived even if they appear effective. Your far better bet is to send the board in to one of the vendors on the internet who are set up to do a proper reball. Even those fixes are good for maybe 12-18 mos. But again, you get a high grade for spelling it out.

  • How to Convert OBJECT_TYPE to the Object Type Used for DBMS_METADATA?

    How do you convert the object type in ALL_OBJECTS to the object type that DBMA_METADATA.GET_DDL expects?
    Thanks,
    Kurz

    maybe one needs to find a mapping between sys.metaview$ and all_objects:
    SQL> select type, xmltag, udt, viewname from sys.metaview$ where type like '%PACKAGE%'
    TYPE                      XMLTAG                    UDT                       VIEWNAME                
    DE_S_PACKAGE                                                                                          
    DE_S_COMP_PACKAGE                                                                                     
    DE_S_COMP_PACKAGE2                                                                                    
    DE_S_COMP_PACKAGE_SPEC                                                                                
    DE_S_PACKAGE_BODY1                                                                                    
    DE_S_PACKAGE_BODY                                                                                     
    SE_PACKAGE                                                                                            
    SE_COMP_PACKAGE                                                                                       
    SE_COMP_PACKAGE2                                                                                      
    SE_COMP_PACKAGE_SPEC                                                                                  
    SE_PACKAGE_BODY                                                                                       
    PACKAGE                   PACKAGE_T                 KU$_PROC_T                KU$_PKG_VIEW            
    PACKAGE                   PACKAGE_BODY_T            KU$_PROC_T                KU$_PKGBDY_VIEW         
    PACKAGE                   FULL_PACKAGE_T            KU$_FULL_PKG_T            KU$_FULL_PKG_VIEW       
    PACKAGE_SPEC              PACKAGE_T                 KU$_PROC_T                KU$_PKG_VIEW            
    PACKAGE_BODY              PACKAGE_BODY_T            KU$_EXP_PKG_BODY_T        KU$_EXP_PKG_BODY_VIEW   
    ALTER_PACKAGE_SPEC        ALTER_PACKAGE_SPEC_T      KU$_ALTER_PROC_T          KU$_ALTER_PKGSPC_VIEW   
    ALTER_PACKAGE_BODY        ALTER_PACKAGE_BODY_T      KU$_ALTER_PROC_T          KU$_ALTER_PKGBDY_VIEW   
    18 rows selected.

  • How to use ranges in the program

    hi all,
    my requirement is i need to create a range for srat date so iam creating a structure say name of the range table is zstartdate. how to use this table in my program.
    selct * from zuser_Secobjects where start_date in zstartdate. is it ok ?
    thanks
    maheedhar.t

    hi maheedhar,
    I am sending u the sample program and the docs also.
    Program:
                    T A B L E  D E C L E R A T I O N                     *
    **-- Tables used
    **-- VBAK.    "Sales Document: Header Data
                      T Y P E  D E C L E R A T I O N                     *
    **-- Type for VBAK
    TYPES: BEGIN OF T_VBAK,
          VBELN LIKE VBAK-VBELN,
          ERDAT LIKE VBAK-ERDAT,
          AUART LIKE VBAK-AUART,
          END OF T_VBAK.
           I N T E R N A L  T A B L E  D E C L E R A T I O N             *
    **-- Internal table to store header data
    DATA: IT_VBAK TYPE STANDARD TABLE OF T_VBAK WITH HEADER LINE.
    **-- Ranges for Inquiry/Quotation
    RANGES R_AUART FOR VBAK-AUART.
           C O N S T A N T S           D E C L E R A T I O N             *
    **-- Constant to store value of Inquiry (IN) / Quotation (QT).
    CONSTANTS: C_IN LIKE VBAK-AUART VALUE 'AF',
               C_QT LIKE VBAK-AUART VALUE 'AG',
               C_EQ(4) TYPE C VALUE 'EQ',
               C_I(2) TYPE C VALUE 'I'.
                         I N I T I A L I Z A T I O N                     *
    **-- Clear the internal tables and flag.
    CLEAR: IT_VBAK,
           R_AUART.
    **-- Refresh the internal tables.
    REFRESH: IT_VBAK,
             R_AUART.
    **-- Initialization of ranges
    R_AUART-SIGN = C_I.
    R_AUART-OPTION = C_EQ.
    R_AUART-LOW = C_IN.
    APPEND R_AUART.
    CLEAR R_AUART.
    R_AUART-SIGN = C_I.
    R_AUART-OPTION = C_EQ.
    R_AUART-LOW = C_QT.
    APPEND R_AUART.
    CLEAR R_AUART.
                S E L E C T I O N  S C R E E N                           *
    SELECTION-SCREEN BEGIN OF BLOCK CHARLY WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: S_VBELN FOR IT_VBAK-VBELN OBLIGATORY.
    SELECT-OPTIONS: S_ERDAT FOR IT_VBAK-ERDAT.
    SELECTION-SCREEN END OF BLOCK CHARLY.
      A T  S E L E C T I O N  S C R E E N ( V A L I D A T I O N S )      *
    AT SELECTION-SCREEN.
    **-- Check the sales order number exists in the database table or not
      SELECT SINGLE VBELN
                    FROM VBAK
                    INTO IT_VBAK
                    WHERE VBELN IN S_VBELN
                      AND ERDAT IN S_ERDAT
                      AND AUART IN R_AUART.
    **-- If no single data selected display error message.
      IF SY-SUBRC <> 0.
        MESSAGE E000.
      ENDIF.
                   S T A R T  O F  S E L E C T I O N                     *
    START-OF-SELECTION.
    **-- To fetch data from database table (VBAK)
    **-- Store the data into the internal tabe (IT_VBAK)
      PERFORM ZF_GETDATA.
                     E N D  O F  S E L E C T I O N                       *
    END-OF-SELECTION.
    **-- To display sales order.
      PERFORM ZF_CHECK_DISPLAY.
                            T O P  O F  P A G E                         *
    TOP-OF-PAGE.
    **-- Page header
      PERFORM ZF_TOP_OF_PAGE.
                            E N D  O F  P A G E                         *
    END-OF-PAGE.
    **-- Page footer
      PERFORM ZF_END_OF_PAGE.
    *&      Form  ZF_GETDATA
          text
    -->  p1        text
    <--  p2        text
    FORM ZF_GETDATA .
      SELECT VBELN
             ERDAT
             AUART
             INTO TABLE IT_VBAK
             FROM VBAK
             WHERE VBELN IN S_VBELN
                   AND ERDAT IN S_ERDAT
                   AND AUART IN R_AUART.
      IF SY-SUBRC <> 0.
        MESSAGE S001 WITH IT_VBAK-VBELN.
      ELSE.
        SORT IT_VBAK.
      ENDIF.
    ENDFORM.                    " ZF_GETDATA
    *&      Form  ZF_CHECK_DISPLAY
          text
    -->  p1        text
    <--  p2        text
    FORM ZF_CHECK_DISPLAY .
      CLEAR: IT_VBAK.
       LOOP AT IT_VBAK.
      IF IT_VBAK-AUART = C_IN.
        ULINE.
        WRITE:/1 SY-VLINE, 10 TEXT-006 INVERSE COLOR COL_HEADING,
               50 TEXT-007 INVERSE COLOR COL_HEADING,
               143 SY-VLINE.
          WRITE:/1 SY-VLINE,12 IT_VBAK-VBELN INVERSE COLOR COL_NORMAL,
                 52 IT_VBAK-ERDAT INVERSE COLOR COL_NORMAL,
                 143 SY-VLINE.
      ENDIF.
      IF IT_VBAK-AUART = C_QT.
        ULINE.
        WRITE:/1 SY-VLINE, 10 TEXT-008 INVERSE COLOR COL_HEADING,
                50 TEXT-007 INVERSE COLOR COL_HEADING,
                143 SY-VLINE.
          WRITE:/1 SY-VLINE,12 IT_VBAK-VBELN INVERSE COLOR COL_NORMAL,
                 52 IT_VBAK-ERDAT INVERSE COLOR COL_NORMAL,
                 143 SY-VLINE.
      ULINE.
      ENDIF.
       ENDLOOP.
    ENDFORM.                    " ZF_CHECK_DISPLAY
    *&      Form  ZF_TOP_OF_PAGE
    Header of the page gets displayed as soon as a new page is generated
    FORM ZF_TOP_OF_PAGE .
      ULINE.
      WRITE:/1 SY-VLINE, 5 TEXT-002 INVERSE COLOR 7,143 SY-VLINE.
      WRITE:/1 SY-VLINE, 143 SY-VLINE .
      WRITE:/1 SY-VLINE, 30 TEXT-003 INVERSE COLOR 7,143 SY-VLINE.
      WRITE:100 TEXT-004 INVERSE COLOR 7,120 SY-DATUM INVERSE COLOR 7,
      143 SY-VLINE.
      WRITE:/1 SY-VLINE,100 TEXT-005 INVERSE COLOR 7,
      120 SY-PAGNO INVERSE COLOR 7,143 SY-VLINE.
      ULINE.
    ENDFORM.                    " ZF_TOP_OF_PAGE
    *&      Form  ZF_END_OF_PAGE
    Footer text displayed in each page
    FORM ZF_END_OF_PAGE .
      WRITE:/60 TEXT-008.
    Docs:
                                           Ranges
    A selection table is linked to the column of a database table, or to an internal field in the program. A selection table is an internal table object of the standard table type that has a standard key and a header line.
    In addition to selection tables that we create using SELECT-OPTIONS, we can use the RANGES statement to create internal tables that have the structure of selection tables. You can use these tables with certain restrictions the same way you use actual selection tables.
    A ranges table type is a special case of a table type. A ranges table type describes the structure of an internal table for administrating complex areas, i.e. the type of an internal table ranges table in the ABAP program.
    The row type of a ranges table type has a fixed structure. The row type consists of 4 components SIGN (sign), OPTION (comparison operator), LOW (lower limit) and HIGH (upper limit) in this order.
    1.     SIGN – The database type of SIGN is C with length 1. The contents of SIGN determine for each row whether the result of the row condition is to be included in or excluded from the resulting set of all rows. Possible values are I (inclusion criterion – operators are not inverted) and E (exclusion criterion – operators are inverted).
    2.      OPTION – The database type OPTION is C with length 2. It contains the selection operator. The following operators are available:-
    -     If HIGH is empty, we can use EQ, NE, GT, LE, LT, CP, and NP.
    -     CP and NP are only allowed if wildcards (‘*' or '+’) are used in the input fields.
    -     If wildcards are entered on the selection screen, the system automatically uses the operator CP. The escape character is defined as #.
    -      If HIGH is filled, you can use BT (Between) and NB (Not Between). We cannot use wildcard characters.
    3.     LOW - The data type of LOW is the same as the column type of the              database table, to which the selection criterion is linked.
    – If HIGH is empty, the contents of LOW define a single field comparison. In combination with the operator in OPTION, it specifies a condition for the database selection.
    –     If HIGH is filled, the contents of LOW and HIGH specify the upper and lower limits for a range. In combination with the operator in OPTION, the range specifies a condition for the database selection.
    4.     HIGH - The data type of HIGH is the same as the column type of the database table, to which the selection criterion is linked. The contents of HIGH specify the upper limit for a range selection.
    If the selection table contains more than one row, the system applies the following rules when creating the complete selection criterion:
    1.     Form the union of sets defined on the rows that have SIGN field equal to I (inclusion).
    2.     Subtract the union of sets defined on the rows that have SIGN field equal to E (exclusion).
    3.     If the selection table consists only of rows in which the SIGN field equals E, the system selects all data outside the set specified in the rows.
    RANGES tables
    We can use the following variants of the TYPES and DATA statements to create internal tables of the same type as selection tables.
    TYPES|DATA .
    An elementary associated type defines the type of components LOW and HIGH. It can be defined by specifying a data element or by directly defining the data type, number of places and if necessary the number of decimal places.
    A ranges table type always has Standard table access mode and a standard key that is non-unique.
    I think this will help u .
    Reward points if helpful.
    Regards
    Nilesh

Maybe you are looking for