Please help me to write a class file?

Hi;
I want to write a class that
after i input an integer say X in a dialog, it will calculate and display the answer of 2 raised to power X. The smallest value of X my program need to handle is 0. Teach me please!

Which part of the program you need help with? Is it the interface, the actual calculation, the compilation, the editing ... etc.
I don't think you're asking someone to do the whole program for you. Be a little more specific in:
1. What you have tried so far
2. What's not working ...
3. What you don't understand and need clarification with ... etc.
4. Do you have an education in Java ... how about in programming ...
The question, as you posted, is just too vague ...
But then again ... its quite possible that someone will post an entire solution for you ....
Good Luck
Kamran

Similar Messages

  • Please help me, I mistakenly deleted a file.  How can I retrieve my file?

    PLease help me retrieve my file.  I was rearranging some docs into sub-files and mistakenly deleted the main file, thinking the sub-files would still be there and they are all gone.  Lots and lots of docs.  PLEASE HELP ME,!!!  The File name was "Cardis, Jackets, Ponchos& Tops Patterns.  I was using the new Adobe Acrobat Reader.

    I don't believe you can if the only copy is on your iPad.
    You must make backups of files which you have on your mobile devices. Then restore from the backup. Backups could easily made by uploading them to Document Cloud, or backing up to another device.

  • Please help to re-write this query using exists or with

    Hi please help to re-write this query using exists or with, i need to write same code for 45 day , 90 days and so on but sub query condition is same for all
    SELECT SUM (DECODE (t_one_mon_c_paid_us, 0, 0, 1)) t_two_y_m_mul_ca_
    FROM (SELECT SUM (one_mon_c_paid_us) t_one_mon_c_paid_us
    FROM (
    SELECT a.individual_id individual_id,
    CASE
    WHEN NVL
    (b.ship_dt,
    TO_DATE ('05-MAY-1955')
    ) >= SYSDATE - 45
    AND a.country_cd = 'US'
    AND b.individual_id in (
    SELECT UNIQUE c.individual_id
    FROM order c
    WHERE c.prod_cd = 'A'
    AND NVL (c.last_payment_dt,
    TO_DATE ('05-MAY-1955')
    ) >= SYSDATE - 745)
    THEN 1
    ELSE 0
    END AS one_mon_c_paid_us
    FROM items b, addr a, product d
    WHERE b.prod_id = d.prod_id
    AND d.affinity_1_cd = 'ADH'
    AND b.individual_id = a.individual_id)
    GROUP BY individual_id)
    Edited by: user4522368 on Aug 23, 2010 9:11 AM

    Please try and place \ before and after you code \Could you not remove the inline column select with the following?
    SELECT a.individual_id individual_id
         ,CASE
            when b.Ship_dt is null then
              3
            WHEN b.ship_dt >= SYSDATE - 90
              3
            WHEN b.ship_dt >= SYSDATE - 45
              2
            WHEN b.ship_dt >= SYSDATE - 30
              1
          END AS one_mon_c_paid_us
    FROM  items           b
         ,addr            a
         ,product         d
         ,order           o
    WHERE b.prod_id       = d.prod_id
    AND   d.affinity_1_cd = 'ADH'
    AND   b.individual_id = a.individual_id
    AND   b.Individual_ID = o.Individual_ID
    and   o.Prod_CD       = 'A'             
    and   NVL (o.last_payment_dt,TO_DATE ('05-MAY-1955') ) >= SYSDATE - 745
    and   a.Country_CD    = 'US'

  • Please help me in Printing a text file :-(

    Hi,
    I have asked this question 3 times, but I didnt get any reply. Can someone please help me in printing a text file to a printer using java. I am able to print it but the problem is the whole file is printed in a messy way. Is there any method in java that prints the text file exactly how it is?
    Thank u very much.

    JavaWorld has a series of articles on how to print using Java: http://www.javaworld.com/javaworld/jw-10-2000/jw-1020-print.html

  • HT1338 trouble logging into my imac desktop, why wont it accept my valid password?? Please help I need to retrieve important files. Thanks.

    trouble logging into my imac desktop, why wont it accept my valid password?? I was using it fine last night... Please help I need to retrieve important files. Many Thanks.

    Do #5 and #6 here others as needed
    ..Step by Step to fix your Mac
    Most commonly used backup methods

  • Please help i cannot open the pdf files of cic.gc.ca

    please help i cannot open the pdf files of cic.gc.ca

    Hi ooovvvaaaiiisss12345.
    Are you trying to view the pdf's from the browser are after downloading it and viewing via Reader.
    Please let me know the OS and browser you are using.
    Are you able to view the pdf's on other websites?
    Let me know what errors you get while viewing the pdf's

  • Please help me to write PCRs... can any body give on real time PCRs .......

    hi to all,
    can any one please help me to write the sample PCRs.

    hi thanks to that...
    but i need some simple PCRs from u r end ......
    please explain to me..
    u said that i need to learn operations and functions ..
    i know those but i don't know how to use it...
    i have had U000 schema material...
    but i am not understing .... it....
    so if u can explain the one or 2 sample PCRs so that i can develop with the help of them........
    waiting for u r soooooooooon replay.............
    bye
    ravi

  • Please help me to write a file from applet to server with a servlet.

    In an applet the client elaborates a string and stores it in the variable of the name "line"
    I would Like to write the string "line" in the file myfile.txt on the server.
    I am in an applet trying to make the URLconnection to a servlet.
    The part of the applet which calls the servlet is the following:
    private void writeToSer(String line)
    try
    URL u = new URL("http://192.168.1.103:8180/servlet/ScriviFileServletFor1?stringa="+line);
    HttpURLConnection urlConn = (HttpURLConnection)u.openConnection();
    catch(IOException ioe)
    JOptionPane.showMessageDialog(null,"IO Exception ","attenzione",JOptionPane.ERROR_MESSAGE );
    the code of the servlet is the following:
    import java.io.*;
    import java.io.File;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ScriviFileServletFor1 extends HttpServlet {
    public void doGet (HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    //read the parameters
    String string = request.getParameter("stringa");
    try {
    File file = new File("/home/icurrado/myfile.txt");
    FileWriter out = new FileWriter(file);
    out.write(string);
    out.close();
    catch (Exception e) {
    e.printStackTrace();
    When I call the servlet from the bar of the URL with :
    http://localhost:8180/servlet/ScriviFileServletFor1?stringa=prova
    It works and writes the string "prova" in the file "/home/icurrado/myfile.txt".
    When I call the servlet from the applet it doesn't work and it doesn't write the string in the file.
    What is wrong or is missing ?
    Please help me.

    You dont need to go through the URL mechanism.
    From an Applet you can directly save the file on the server at destinated location.
    You can look for "Uploader Applet" in google.

  • Please Help. Trying to create XML file from 2 tables.

    Step1: Target XML format
    Created an XML
    <DEPART>
    <DEPARTMENT_ID>10</DEPARTMENT_ID>
    <DEPARTMENT_NAME>Administration</DEPARTMENT_NAME>
    <MANAGER_ID>200</MANAGER_ID>
    <LOCATION_ID>1700</LOCATION_ID>
    <EMP><EMPLOYEE_ID>100</EMPLOYEE_ID>
    <FIRST_NAME>Steven</FIRST_NAME>
    <LAST_NAME>King</LAST_NAME>
    <SALARY>24000</SALARY>
    </EMP>
    </DEPART>Step 2. Created a target data server from the above mentioned xml. Specified the logical and physical schema.
    Step3.Logged into Designer and reverse engineered from the the schema created in step2.
    step 4. Following Hierarchy is created
    DEPART
    --> EMP
    Step 5. Reverse engineered 2 tables from oraclexe (HR ) Schema
    Employees
    Departments
    Step 6. Created an interface and made DEPART from step 4 as target
    and Departments from step 5 as source.
    Step 7. Staging area is different to the target.
    step 8. modified the IKM SQL Control Append to write to a file
    create xmlfile #filename from schema DEPART
    Step 9. Changed the DEPART PK Column in the TARGET to 0
    Step 10. File is created.
    Problem:
    1. When i view the file it has all the departments but the employees are also displayed eventhough i haven't done the mapping.
    2. All the employees are listed under every department.
    Please help as i have tried everything. I know i am missing something somewhere.
    Thanks a lot for reading it.
    Alvinder
    Edited by: alvinder on Jun 30, 2010 5:29 PM

    Hi Alvindar,
    Thanks u posted good issue,
    Can u clarify this about how your issue got ressolved. I am also trying with same XML as you have pasted here. I have following doubts.
    While setting up XML data server the ro option i have deleted as defalut value is false which allows both read/write & its look like this
    jdbc:snps:xml?f=../demo/XML/EMPDEPT.xml&s=SCH_EMPDEPT.
    I have mapped and written create XML commands in commit section of IKM which looks like this :CREATE XMLFILE #ExportXMLFileLoc FROM SCHEMA SCH_FLDEPT
    created the interface and executed,it went through fine,4 rows data transformed into target xml data store,file is generated in the given path .
    But in the generated file is same as which have EMPDEPT.xml with data change,but in the target xml data store depart i am able to view newly inserted records.
    i want generate an output xml for each of the target of the XML data store, how we can do that please explain me.
    this is my xml
    <?xml version="1.0" encoding="UTF-8"?>
    <REQUEST>
    <DEPART>
    <DEPARTMENT_ID>10</DEPARTMENT_ID>
    <DEPARTMENT_NAME>Admin</DEPARTMENT_NAME>
    <MANAGER_ID>200</MANAGER_ID>
    <LOCATION_ID>1700</LOCATION_ID>
    </DEPART>
    </REQUEST>
    tried only with DEPART table.
    Waiting for ur repply,
    Thanks,
    MNK

  • Please help me recover a lost PDF file from Adobe Reader XI

    Hi,
    I was filling out a VA form 5655 in Adobe, and twice today, I lost my file and I just cannot type all of this stuff again, because I had to do so much math and typing and more math.  All of a sudden "bloop", it was gone.  When I try to go into file, then revert, revert is not highlighted.  I tried pulling up history and it said there was no history.  I just don't know what else to do, and I need this for the morning.  Please help?  Thanks

    Hi Pat,
    I filled it out directly from the blank PDF online, and never got a chance
    to save the whole document.  I did however save it about 1/2 way through,
    but yet cannot find that 1/2 of the document either.  Thanks.
    MIke

  • Please help! My Itunes says corrupt file and will not open (IMac 2010). I couldn't fix it by reinstalling so I moved it to trash. It will not delete from my trash as it is saying "Japanese.lproj" is in use. I can't delete or open to close it, what do I do

    Please help!
    My Itunes says there is a corrupt file and will not open (IMac 2010). I couldn't fix it by reinstalling ITunes so I moved ITunes to trash. It will not delete from my trash as it is saying "Japanese.lproj" is in use. I have never opened or used "Japanese.lproj". I can't delete ITunes or open ITunes to close the Japanese.lproj, what do I do? Thank you for any help you can provide..

    It will not delete from my trash as it is saying "Japanese.lproj" is in use. I have never opened or used "Japanese.lproj".
    Interesting. This sort of thing is more common on Windows systems. Taken at face value, one of the iTunes program files (one of the Japanese language resources) is damaged.
    I'd try running your Disk Utility over your startup disk. Does it find/repair any damage? If so can you empty your trash and reinstall your iTunes successfully now?

  • Please  Help me How write the BDC program for the MIGO inbound Delivery

    Please help me how to write bdc program for the MIGO Inbound Delivery in 4.7EE Version. Please help me.
    Not in LSMW.  Required call transaction or Session Method. Please help me.
    Mohan

    Run transaction BAPI . Select Logistics Execution/Shipping/InboundDelivery/SaveReplica.. You can use function module BAPI_INB_DELIVERY_SAVEREPLICA in your ABAP program.

  • Please help. 3 beeps and gray file on startup

    2012 Macbook Pro 13 inch. A friend brought it to me because of a white screen and gray flashing folder on startup. I booted to disk uility and saw that it did not see a hard drive. Pulled hard drive attached it with a external reader to my macbook. was able to browse all the files, and back them up.  Formated hard drive with disk uility and put back in the computer. Disk uility did not see it after format. Put a different hard drive in computer, disk uility still doesnt see. it. Hardware test came back with no problems. I put a snow leopard cd in and booted, and i get a apple logo with 3 beeps. I have checked all connections adn removed battery. Please help i am out of ideas.

    There a some fasteners that hold them in, if adjusted may restore functionality.
    motownmedic wrote:
    also would that cause the white screen with a gray file?
    The HDD or the connection to the HDD is faulty.
    Ciao.

  • Please help! I can't open files in Photoshop 2014.2

    I installed (and reinstalled and rebooted ad nauseum) Photoshop 2014.2 and now I can't open any files in Photoshop. When I click on a file in Bridge or in File Explorer, Photoshop will open but the file won't open.
    I'm running Windows 8.1.  I've updated my graphics card driver. My files aren't corrupt, because I can open them on 2014 on my laptop. Please, please help! I'm dead in the water and this is my business!

    What have you done for trouble.shooting other than re-installing (which would probably be pretty much moot anyway if one does not uninstall and use the clean script first)?
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html

  • Please Help Updating FCPX 10.0.8 files to 10.1.1 - Manually Doesn't Work

    Hello all,
    I tried updating all my Events and Projects from FCP 10.1.1 after using it for awhile (explanation below) and it won't recognize them. After studying online, I've put my Final Cut Events and FC Projects folders in my boot internal Movies drive and on the boot of one of my external drives, but still FCP X 10.1.1 won't recognize them - they are visible but greyed out.
    I have been able to import media from those folders, but without the project files it would be back to the drawing board - no good.
    When I first opened FCPX 10.1.1 I only updated 1 project - a full length doc I was working on, because I didn't want to clog the system while working,
    (I had to get a Digital Cinema Print made quick on my system) and because after reading the Read Me First Notes and white papers, it made it clear that I could update my files manually later.
    So far, no go. Please help. I'm of course - like everyone else - on a deadline, and I have at least 10 short films/projects that are in various stages of
    edits that need to be completed.
    Tom Wolsky, you out there? Kevin Monahan? It's been awhile since I needed advice. Yes, I know, operator error...so it goes. Please help anyone.
    Working on an iMac (Late 2012) 3.1 GHz Intel Core i7 with 16BG 1600 Mhz DDR3 Ram on OSX 10.9.3.
    Cheers and thanks to this community.
    Juri

    UUpdating updates volumes. You don't have to select the project or event. They will always be grayed out. Simply select the hard drive you want to update.

Maybe you are looking for

  • Pavilion G6-1203ey: Hard Disk Test FAILED, but can still boot into Windows

    Hello I have HP Pavilion G6-1203ey laptop. After installing Windows (7 ultimate, 64 bit) and some drivers on it and after several restarts, it hanged at Windows logo and I had to turn it off with power button. Then after turning it on, it gave me the

  • Why do circles rotated 45 degrees in PowerPoint slides not appearing in PDF?

    I am using Acrobat XI Professional and PowerPoint 2013 in Windows 8. I have two PowerPoint slides. One slide is a filled-in circle. The other slide has another filled-in cirlce that is rotated 45 degrees. When I convert the PowerPoint presentation wi

  • Font not saving

    I have changed the font of my outgoing messages (color and style and size) in the preferences menu. However, the receiver will see size 12 black Times New Roman. The receiver does not have the computer set to reformat incoming messages and will only

  • Conditional Build tags affecting formatting and merging hyperlinks

    I'm working in RH6 on a number of projects. In all of them I use a specific caption box/format combination for tips and notes. I also use a conditional build tag so I can generate a 'lite' versions of full help, suitable for printing.  I note that on

  • Regarding the email

    Hi,    if i want to attach an attachment to the mail. how can i do that. please provide me guidance for that. thank in advance