Design and code a new method to be exported from.... (please check my code)

I'm working on my homework problem which is:
Design and code a new method to be exported from ArrayStringLog (the file is given to me) called isEmpty with the following signature public boolean isEmpty()
I created a new class and named it homework2, here is the method:
public class homework2
       public boolean isEmpty()
  // Returns true if this StringLog is empty, otherwise returns false.
    if (lastIndex == (- 1))
      return true;
    else
      return false;
}now how can i get it exported from ArrayStringLog? that's the part that I didn't understand
Edited by: memee4eva on Sep 30, 2009 11:53 PM

I think your isEmpty() method should go into the ArrayStringLog class. That way the method will be exposed by the altered ArrayStringLog class.
Am I right in thinking that an ArrayStringLog instance has a lastIndex member?
You might like to compare what you have with this:
    /** Returns true iff this StringLog is empty. */
public boolean isEmpty()
    return lastIndex == -1;
  }

Similar Messages

  • SP 2013 Development - How can I Simulate Different Devices to Help Design and Test a New UI?

    Hello Community!
    I am working with SharePoint 2013 and I need to be able to design and test a new design across multiple device browsers.  Does anyone know how to simulate a device browser for design and testing?  BTW, I know about Device Channels, and they give
    me a way to dynamically change my UI for different device browsers, but because this UI is complex, I cannot be sure what dynamic changes need to occur until I can simulate the device browsers and view my new UI in them.
    Thanks!
    Tom
    Tom Molskow - Senior SharePoint Architect - Microsoft Community Contributor 2011 and 2012 Award -
    Linked-In - SharePoint Gypsy

    Hi Tom,
    Because your question is mainly how to simulate different devices, which is more related to SharePoint development, I am moving this thread to
    SharePoint 2013 - Development and Programming forum for better response.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I need to uninstall my old version on itunes and install a new version, i cant uninstall from Programs and Features, a message keeps coming up saying 'The feature you are trying to use is on a network resource that is unavailable.' Can anyone help please

    I have tried to just install the new version of itunes from the apple website, it looks like it downloads but after 5 minutes at the end of the install it says 'old version of itunes cannot be uninstalled, please contact support.'?  
    Is there anyway I can remove the version of itunes from my computer? i dont mind if i lose the music/content I already have on my itunes. I need to do this as i have just received the iphone 4 and need to install the newest version of itunes.
    Many thanks

    I need to uninstall my old version on itunes and install a new version, i cant uninstall from Programs and Features, a message keeps coming up saying 'The feature you are trying to use is on a network resource that is unavailable.'
    Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
    Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
    If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove".
    Quit out of CleanUp, restart the PC and try installing iTunes again. Does the install go through properly now?
    (If you do find a clean download site for the correct version of CleanUp, please don't tell me where it is. Without wishing to sound paranoid (although I grant it does sound paranoid), there is a non-zero chance that posting links to download locations for the utility here at Discussions leads to that download location being shut down.)

  • How to design and implement an application that reads a string from the ...

    How to design and implement an application that reads a string from the user and prints it one character per line???

    This is so trivial that it barely deserves the words "design" or "application".
    You can use java.util.Scanner to get user input from the command line.
    You can use String.getChars to convert a String into an array of characters.
    You can use a loop to get all the characters individually.
    You can use System.out.println to print data on its own line.
    Good luck on your homework.

  • After adding plug-ins to block ads, my firefox no longer opens--it hangs/freeze--i have tried to restart, even deleted firefox and downloaded a new version--to no avail! please advise--

    Last night I aded a few plug-ins to block ads including Google's--after restarting my computer (Mac OS X 10.6.8), my firefox no longer opened, i.e. it hangs/freeze when I open it--I have tried to restart, open in safe mode, even deleted firefox altogether and downloaded a new version, to no avail! Please advise! I have been trying to revive Firefox for hours today--

    Hey rumon,
    Have you tried starting Firefox in Safe Mode? Hold down "option" while Firefox is starting up. If the crash doesn't happen in Safe Mode, you should read [[Troubleshooting extensions and themes]].
    There is also a lot of useful stuff in the [[Firefox crashes]] Knowledge Base article. If you've recently upgraded, you might want to check out [https://support.mozilla.com/en-US/kb/latest-firefox-issues#w_firefox-crashes-when-i-start-it this article] as well.
    Hopefully this helps!

  • Please check the code

    I AM TRYING TO REPLICATE THE ADDRESS OF EQUIPMENT FROM ECC TO CRM.
    I AM ABLE TO REPLICATE THE IDENTIFICATION NUMBER.
    WHILE USING THE SAME FUNCTION MODULE FOR ADDRESS, THE ADDRESS IS NOT GETTING REPLICATED.
    PLEASE CHECK THE CODE AND TELL ME WHAT PRE-REQUISITES MUST BE TAKEN INTO CONSIDERATION AND IS THERE ANY MISTAKE FROM ME.
    FULL POINTS WILL BE REWARDED.
    ITS VERY VERY URGENT.
    METHOD IF_EX_CRM_EQUI_LOAD~ENLARGE_COMPONENT_DATA.
    **Data declarations
    DATA:
        ls_equi          type crmt_equi_mess,
        ls_comp          type ibap_dat1,
        ls_comp_det1     TYPE IBAP_COMP3,
        ls_address_data  type ADDR1_DATA,
        ls_object      type comt_product_maintain_api,
        ls_object1     type comt_product,
        lv_object_id   type IB_DEVICEID,
        lv_object_guid type IB_OBJNR_GUID16.
    **Map Sort field from ECC to CRM
    Read table it_equi_dmbdoc-equi into ls_equi index 1.
    lv_object_id  = ls_equi-equnr.
    move is_object to ls_object.
    move ls_object-com_product to ls_object1.
    lv_object_guid = ls_object1-product_guid.
    move is_component to ls_comp.
    ls_comp_det1-deviceid    = lv_object_id.
    ls_comp_det1-object_guid = lv_object_guid.
    ls_comp_det1-EXTOBJTYP   = 'CRM_OBJECT'.
    ls_comp_det1-ibase       = ls_comp-ibase.
    ls_address_data-roomnumber = '1000'.
    ls_address_data-floor = '10'.
    ls_address_data-country = 'US'.
    CALL FUNCTION 'CRM_IBASE_COMP_CHANGE'
      EXPORTING
       i_comp                       = ls_comp
       I_COMP_DET             = ls_comp_det1
       I_ADDRESS_DATA     = ls_address_data
      I_ADDRESS_ADMIN           =
      I_PARTNER                 =
      I_DATE                    =
      I_TIME                    =
    EXCEPTIONS
      DATA_NOT_CONSISTENT       = 1
      IBASE_LOCKED              = 2
      NOT_SUCCESFUL             = 3
      OTHERS                    = 4
    *IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    ENDMETHOD.

    Hi S B,
    May I the procedure for the replication of serialnumber into device ID that is Identification field In Ibase.
    And one more thing need this to be codded in the standard badi or needed an copy of the implementation .
    plz help me as u already have done the requirement.
    u will be twice rewarded.
    Thanking u in advance for the reply.
    Sree.

  • Please check the Code snippet and detail the difference

    Please go through the two code snippets given below...
    Can some one please let me know if using generics is a better way to denote the signature and if yes, why is it so?
    Thank you
    Two classes:
    class SimpleStr {
         String name = "SimpleStr";
         public SimpleStr(String name) {
              this.name = name;
         public String getName() {
              return this.name;
         public String toString() {
              return getName();
    class MySimpleStr extends SimpleStr {
         String name = "MySimpleStr";
         public MySimpleStr(String name) {
              super(name);
              this.name = name;
         public String getName() {
              return this.name;
         public String toString() {
              return getName();
    Code Snippet 1:
    class AnotherSimpleStr {
         public <S extends SimpleStr>S getInfo() {
              return (S)new MySimpleStr("val3");
    Code Snippet 2:
    class AnotherSimpleStr {
         public SimpleStr getInfo() {
              return new MySimpleStr("val3");
    }

    Also, please see the code below, the getInfo() method is not taking care of Type safety right??!!!!
    class AnotherSimpleStr {
         public <S extends SimpleStr>S getInfo() {
              return (S)new Object();
         public <S extends SimpleStr>S getInfoAgain(Class<S> cls) {
              return (S)new MySimpleStr("Val");
    }

  • Trying to load CS3 Design Premium on a new machine; it's blocked by system check.

    I'm trying to load CS3 Design Premium on a new laptop. The system check is preventing InDesign from loading. It inaccurately indicates I don't have great enough resolution. Does anyone have a workaround?
    I have a PC running Windows 7 OS.
    I've done the following:
    Adjusted the resolution to maximum resolution and also to the value Adobe recommends. Both without success.
    Used Adobe cleaner, restarted, and tried to reload. No luck. InDesign and Illustrator are still prevented from loading due to resolution ((1024 X 768).
    Ideas, tips, and workarounds appreciated!

    Jane, please turn off the autoquote in you email when replying.
    I've installed it on two CS3 win 7 machines with wide-screens without incident. Are you running the installer from disk or a download? The CS3 installers was pretty finicky, as I recall, and you may need to perform a "clean boot" to get it to work. See How to perform a clean boot to troubleshoot a problem in Windows 8, Windows 7, or Windows Vista
    You can also see the tips I gave to my students when I was teaching and CS3 was new: https://www.hightail.com/download/bWJwSXQ4NDI4NVVPd3NUQw

  • Enhanced SAP class with new methods - Not showing these from standard task

    Dear Gurus,
    I have enhanced SAP standard class with new methods. After I have activated my new methods and would like to create a workflow task using these new methods. when I create a task and input object category as "ABAP Class" and object type is SAP enhanced class. When I try to drop down for methods SAP is not showing my new methods. I do not know why. Am I missing any? Any help would be appreciated.
    Note: Remember I am trying to use SAP ABAP class custom methods.
    Thanks,
    GSM

    Hi,
    Your thread has had no response since it's creation over
    2 weeks ago, therefore, I recommend that you either:
    - Rephrase the question.
    - Provide additional Information to prompt a response.
    - Close the thread if the answer is already known.
    Thank you for your compliance in this regard.
    Kind regards,
    Siobhan

  • Could you please check this code

    Hi There,
    The scenario here is :
    I have written this piece of code but its not showing desired result .I think the problem is in the AVGRANGE.
    Please look into this and let me know if I am doing anything wrong.
    I need to accomplish this task ,if employee E1 & E2 are in Entity1 in Grade S in forecast1 and now in forecast 2 a new employee namely E3 has come in this new forecast and whether he belongs to same entity can be identified by a new account say "F",If "F" is present for that Employee in that particular entity means he belongs to that Entity .Then I need to calculate.
    "P" value for E3 for a month=Avg of "P" value for E1 & E2 in Entity1 in Grade S for that month.
    I think this code is calculating for invalid combination also.
    FIX (&CurrFctScenario,&CurrFctVersion,&CurrYear)
    FIX (&SeedCurrency)
    FIX(@descendatns("Entity"),@descendatns(GRADE),@Descendants(Employee)
    FIX (&CurrMonth:"MAY"
    , &SeedHSP
    "P"(
    IF ( "F"!=#Missing AND "P"==#Missing)
    @AVGRANGE(SKIPNONE,"P",@children(Employee)->@currmbr(Grade)->@currmbr(entity));
    ENDIF;
    ENDFIX
    ENDFIX
    One more thing as I am testing this code for say two three employees then its working fine but as I am uisng @children(Employee) then I am getting error message
    Error: 1012704 Dynamic Calc processor cannot lock more than [200] ESM blocks during the calculation, please increase CalcLockBlock setting and then retry(a small data cache setting could also cause this problem, please check the data cache size setting).
    Is there any other way of doing this calculation?
    Edited by: user10760185 on Jun 1, 2011 5:35 AM

    Thanks a lot Alp...
    Please find the logic of the calculation below:
    In forecast1,here E1=employee,S1=Grade,P1=Account member
    E1->S1->Entity1->P1= 100
    E2->S1->Entity1->P1=200
    In forecast2,E3,a new employee has come and if he/she belongs to S1 and Entity1 ,then the value should be
    If (E3->F!->@currmbr(grade)->@currmbr(entity)=#Missing AND P1==#Missing)
    E3->S1->Entity1->P1= (100+200)/2
    I will read the document and will check my cache settings.
    Edited by: user10760185 on Jun 1, 2011 11:36 PM

  • Hi, how to set printer to alv grid, please check my code

    Hi,
    Iam giving my code, please observe...
    DEFAULT PRINTER NAME "A909".
    NOW IAM SETTING OT "LP01".
    GS_PRINT-PRINT = 'X'.
    P_PRINTR = 'LP01'.
    CALL FUNCTION 'UPDATE_DEFAULT_PRINTPARAMS'
    EXPORTING
    USER = SY-UNAME
    DESTINATION = P_PRINTR
    IMMEDIATELY = ' '
    RELEASE = 'X'
    NEW_LIST_ID = 'X'.
    SY-BATCH = 'X'
    CALL METHOD GO_GRID->SET_TABLE_FOR_FIRST_DISPLAY
    EXPORTING
    I_BUFFER_ACTIVE =
    I_BYPASSING_BUFFER =
    I_CONSISTENCY_CHECK = G_CONSISTENCY_CHECK
    I_STRUCTURE_NAME = 'KNA1'
    IS_VARIANT = GS_VARIANT
    I_SAVE = 'A'
    I_DEFAULT = 'X'
    IS_LAYOUT = GS_LAYOUT
    IS_PRINT = GS_PRINT
    IT_SPECIAL_GROUPS =
    IT_TOOLBAR_EXCLUDING = GT_EXCLUDE
    IT_HYPERLINK =
    IT_ALV_GRAPHICS =
    IT_EXCEPT_QINFO =
    IR_SALV_ADAPTER =
    CHANGING
    IT_OUTTAB = ITAB2[]
    IT_FIELDCATALOG = GT_FIELDCAT
    IT_SORT =
    IT_FILTER =
    EXCEPTIONS
    INVALID_PARAMETER_COMBINATION = 1
    PROGRAM_ERROR = 2
    TOO_MANY_LINES = 3
    others = 4
    After running this program iam getting the default printer spool request number 'A909', Iam not getting printing form 'LP01'.
    Need is to send the print to given printer (LP01), here printer may varry accoring to the selection. So nee is to set the printer that which has choosen.
    Please give me the valuble solution as early as possible.
    Please solve this as early as possible.

    Hi Ravi,
    You can choose for the print version to be created as a PostScript file instead of a PDF document. The PostScript file is then sent directly to a printer of your choice
    If you do not specify an output device here, a PDF file is generated and displayed on the screen.
    You use the methods of the interface class IF_SALV_WD_PDF_SETTINGS for this (implementing class CL_SALV_WD_CONFIG_TABLE).
    <b>Function</b>                      <b>Method</b>
    Set ALV output to be printed immediately -->  SET_PRINT_IMMEDIATE
    Check whether the ALV output is to be printed immediately --> GET_PRINT_IMMEDIATE
    Set printer -->  SET_PRINTER
    Get printer --> GET_PRINTER
    See the below for SAP link
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/27472def40601ee10000000a422035/content.htm
    see the thread also
    Re: How to set the printer in set_table_for_first_display
    mark all the helpful answers
    Regards
    Sudheer

  • Trying to Hot Sync Visor Pro with Windows 7 (64 bit OS) - getting error: "The connection between your handheld computer and the destktop could not be establishe​d. Please check your setup and try again."

    Hi.
    I read the posting regarding the options on Hotsyncing for Windows 7; however, I have some questions as I have a 64-bit system.
    I have a Visor Pro that I'm trying to Sync up with my new laptop which is running Windows 7.
    Steps I have taken:
    * installed the Visor Palm Desktop 3.0.1 that came with the Visor (which the installation went well)
    * The issue arises when I push the "Sync" button on the cradle and the following error message appears "The connection between your handheld computer and the destktop could not be established.  Please check your setup and try again."
    Since I have a 64-bit OS it appears that I have 2 options: 1) bluetooth or 2) Infrared.
    I have to admit I don't know know how to do either of these (how can I tell if this Handspring Visor Pro has bluetooth (which I don't it does)?). 
    Then how about the Infrared option?  I see on the PDA it has a red area that one can "beam" info.  Is this the same as Infrared or my 2nd option?
    I love my Visor and want to continue using it, but need to backup the valuable info!
    Any help with this would be greatly appreciated!
    THANKS!!!!!
    Post relates to: Visor Pro

    Hello lwalbring and welcome to the Palm forums.
    Your Visor, as you suspect, does not have Bluetooth, so you must use the IR HotSync option.  Since you are using Windows 7 64-bit, I believe that you are going to have to upgrade to Palm Desktop 6.2.2 to make things work from an OS/Driver perspective.
    Since you are using such an old device, you are also going to have to download and install the PalmHotSyncSetup Utility from Pimlico.  This update turns on support for old Palm OS PDAs in Palm Desktop 6.2.2.  Without the update, you won't be able to sync your Visor with Palm Desktop 6.2.2.  The software is free and the link is all the way at the bottom of the screen.
    Lastly, if your PC doesn't have an IR port on it, you will need to purchase a USB to IR adapter.  Some laptops still have IR ports and most desktops don't.
    Once you have all the pieces, you'll want to go back to the Windows 7 and Vista HotSync thread again, and follow the directions for setting up and configuring IR HotSyncs.
    Alan G

  • Cannot activate facetime on iPhone 5 and got below message  "Could not sign in. Please check your network connection and try again". All networks work well (WI-FI or At

    I got my new iPhone 5 Last Friday. However I can not activate facetime on the new iPhone 5. All other function work well.
    I used my apple ID and always get the below message " Could not sign in. Please check your network connection and try again".
    My network work well. I can access internet, apple store with no issue via wi-fi or AT&T 4G. No password issue as I can use the same apple ID register other access and apple store.
    I noticed that many users are complaining the facetime after upgrading to iOS6. Not sure if this is the reason?
    Any one here can help on this?
    Thanks

    Facetime is accessed through Contacts or Messages. The only place you will find anything else in is Settings, where you would activate it. There is no stand alone app for Facetime like on the iPod or iPad.

  • Design and registration of new objects

    We have the following three objects:
    - Order, which contains:
    -- OrderStatus
    -- Vector: OrderStatusHistoryItem
    Whenever order.setStatus(newStatus) is called we would like to create a new OrderStatusHistoryItem and add that to the vector of history inside the Order.
    Our first guess was to put this in the setStatus method of the Order object, so that noone would bypass the adding to history. But... When creating the OrderStatusHistoryItem inside the Order we of course get an error from TopLink, saying that the object was not registered in the UOW.
    Is there some way that we can tell TopLink that this relationship should be registered automatically on commit? If not, what would be the best way to design this? Of course we do not want to expose our domain layer to the internals of TopLink. Would a factory be the best way to handle registration upon creation?
    Thanks,
    Anders,

    Anders,
    New objects created and attached to working copies will be discovered during commit cycle and added to the persistent model including the appropriate INSERT. The only issue you will have is that you must make sure that setStatus(newStatus) is ONLY called on working copies read from or registered with a UnitOfWork. If this is true you should be able to create the new OrderStatusHistoryItem within the setStatus method and add it to the collection without registering it in the UnitOfWork.
    Doug

  • Please Check My Code and Give Advice..

    Hi all.... I am new in Java Programming and need your help for the following :
    Convert binary numbers to decimal.
    The program should prompt user to enter the number. Upon clicking the button, the program should display the number, the positional wightage of each digit of the number ( I have done some researched n found that i have to use pow method for this....is this correct??? ) .........and the decimal equivalent of the number.
    I know how to convert binary to decimal...octal to decimal ... and vice versa as I have learned that prior taking this java programming class.
    And I have no difficulty creating buttons n labels....that's the easiest part.
    What I don't know is how to use the pow method for the conversion part as I am not gonna have any fix number....user will type lets say...01001 or 111000 .... so how do i capture the numbers from right to left n convert it to decimal?
    I noe the conversion is like :
    (0*16) + (1*8) + (0*4) + (0*2) +( 0*1)
    and I tried using ifElse statements...but i think there's a much simpler n easier way to do....well...maybe i give u what i've done n can u all can shed some light on where i went wrong...
    i m such a dummy in this i need to be knock on the head...
    well here goes:
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    public class Numberpro extends Applet implements ActionListener
    Label first, one, two;
    TextField satu, dua;
    Button con;
    int answer;//number that is entered in the textfield
    double a1,a2,a4,a8,a16;//declare the 5 digit binary to decimal conversion power
    //example:2^0=1 , 2^1=2 , 2^2=4 , 2^3=8 , 2^4=16
    int a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,za,zb,zc,zd,ze;
    //declare if 00000 , 00001 , 00010 then it becomes.....
    String type="binary";//convert binary base to decimal
    String type2="octal";//convert octal base to decimal
    String type3="";
    public void init()
    {first=new Label ("Number System");
    add(first);
    one=new Label ("Enter the number : ");
    add(one);
    satu=new TextField(9);
    add(satu);
    satu.addActionListener(this);
    two=new Label ("Enter the base system ");
    add(two);
    dua=new TextField(9);
    add(dua);
    dua.addActionListener(this);
    con=new Button ("Convert");
    add(con);
    con.addActionListener(this);}
    public void actionPerformed(ActionEvent event)
    {answer=Integer.parseInt(event.getActionCommand());
    repaint();
    type3=dua.getText();
    repaint();}
    public static double pow(int a, int b)
    {a1 = Math.pow(2.0, 0.0);
    a2 = Math.pow(2.0, 1.0);
    a4 = Math.pow(2.0, 2.0);
    a8 = Math.pow(2.0, 3.0);
    a16 = Math.pow(2.0, 4.0);}
    public void paint(Graphics g)
    {a=a1;
    b=a2;
    c=(a2+a1);
    d=a4;
    e=a4+a1;
    f=a4+a2;
    g=a4+a2+a1;
    h=a8;
    i=a8+a1;
    j=a8+a2;
    k=a8+a2+a1;
    l=a8+a4;
    m=a8+a4+a1;
    n=a8+a4+a2;
    o=a8+a4+a2+a1;
    p=a16;
    q=a16+a1;
    r=a16+a2;
    s=a16+a2+a1;
    t=a16+a4;
    u=a16+a4+a1;
    v=a16+a4+a2;
    w=a16+a4+a2+a1;
    x=a16+a8;
    y=a16+a8+a1;
    z=a16+a8+a2;
    za=a16+a8+a2+a1;
    zb=a16+a8+a4;
    zc=a16+a8+a4+a1;
    zd=a16+a8+a4+a2;
    ze=a16+a8+a4+a2+a1;}
    if (type.equals(type3))
    {g.drawString("answer " , 40, 55 );}
    if (type=00000)
    {g.drawString("Decimal Equivalent " + 0 , 60, 75 );}
    else
    if (type=00001)
    {g.drawString("Decimal Equivalent " + a , 60, 75 );}
    else
    if (type=00010)
    {g.drawString("Decimal Equivalent " + b , 60, 75 );}
    else
    if (type=00011)
    {g.drawString("Decimal Equivalent " + c , 60, 75 );}
    else
    if (type=00100)
    {g.drawString("Decimal Equivalent " + d , 60, 75 );}
    else
    if (type=00101)
    {g.drawString("Decimal Equivalent " + e , 60, 75 );}
    else
    if (type=00110)
    {g.drawString("Decimal Equivalent " + f , 60, 75 );}
    else
    if (type=00111)
    {g.drawString("Decimal Equivalent " + g , 60, 75 );}
    else
    if (type=01000)
    {g.drawString("Decimal Equivalent " + h , 60, 75 );}
    else
    if (type=01001)
    {g.drawString("Decimal Equivalent " + i , 60, 75 );}
    else
    if (type=01010)
    {g.drawString("Decimal Equivalent " + j , 60, 75 );}
    else
    if (type=01011)
    {g.drawString("Decimal Equivalent " + k , 60, 75 );}
    else
    if (type=01100)
    {g.drawString("Decimal Equivalent " + l , 60, 75 );}
    else
    if (type=01101)
    {g.drawString("Decimal Equivalent " + m , 60, 75 );}
    else
    if (type=01110)
    {g.drawString("Decimal Equivalent " + n , 60, 75 );}
    else
    if (type=01111)
    {g.drawString("Decimal Equivalent " + o , 60, 75 );}
    else
    if (type=10000)
    {g.drawString("Decimal Equivalent " + p , 60, 75 );}
    else
    if (type=10001)
    {g.drawString("Decimal Equivalent " + q , 60, 75 );}
    else
    if (type=10010)
    {g.drawString("Decimal Equivalent " + r , 60, 75 );}
    else
    if (type=10011)
    {g.drawString("Decimal Equivalent " + s , 60, 75 );}
    else
    if (type=10100)
    {g.drawString("Decimal Equivalent " + t , 60, 75 );}
    else
    if (type=10101)
    {g.drawString("Decimal Equivalent " + u , 60, 75 );}
    else
    if (type=10110)
    {g.drawString("Decimal Equivalent " + v , 60, 75 );}
    else
    if (type=10111)
    {g.drawString("Decimal Equivalent " + w , 60, 75 );}
    else
    if (type=11000)
    {g.drawString("Decimal Equivalent " + x , 60, 75 );}
    else
    if (type=11001)
    {g.drawString("Decimal Equivalent " + y , 60, 75 );}
    else
    if (type=11010)
    {g.drawString("Decimal Equivalent " + z , 60, 75 );}
    else
    if (type=11011)
    {g.drawString("Decimal Equivalent " + za , 60, 75 );}
    else
    if (type=11100)
    {g.drawString("Decimal Equivalent " + zb , 60, 75 );}
    else
    if (type=11101)
    {g.drawString("Decimal Equivalent " + zc , 60, 75 );}
    else
    if (type=11110)
    {g.drawString("Decimal Equivalent " + zd , 60, 75 );}
    else
    if (type=11111)
    {g.drawString("Decimal Equivalent " + ze , 60, 75 );}
    I have another question for you too:
    1) For the TextField can i use ActionListener instead of TextListener....will it still work?

    Couple of things I'd like to mention:
    1. Your code is buggy. You need to repair it a lot.
    2. You posted the question on the wrong forum. I can't find anything to do with a JSP.
    ***Annie***

Maybe you are looking for

  • How can I create a new mail custom form shortcut ?

    Hello everyone ! It's been three hard day of searching for such a simple question: How can I add a button to Outlook's ribbon that select a new pre-define form to send ? I already have the button but I miss an instruction like that: Create new mail w

  • Display is all snow coming out of Sleep mode

    Just replaced a 17" LCD (using the mini-DVI-to-VGA) with a new Acer 24" widescreen LCD (using mini-DVI-to-DVI). After a little fiddling with the profile, I've got a pretty nice picture. Problem: coming out of sleep mode, the screen is all snow. If I

  • Table Interface "destroys" Excel download

    Hello all, i made a webtemplate with 3 dataproviders. To download all into one excel sheet i implemented the How-To-Paper:" Web printing with Excel". It works fine. Now i attached a table interface class to the webtemplate which adjust some cells reg

  • Deleting a user in AD using Oracle Workflow

    Hello. I have a very unusual scenario that I want to solve. We are developing an application using Oracle Workflow in which we are simulating the process of deleting a user from several systems. In one of the steps of the process we have to invalidat

  • While sharing to iDVD -- computer crashed

    Twice in a row, while sharing an iMovie 11 project to iDVD, the computer crashed. How can I gather information to find out why it is crashing? The first time, when I rebooted, I continued the sharing (presumedly from where I left off), but the output