I am getting an error here...

I am trying to add the driver class to this program as my instructor has asked, but can not seem to get it to work properly. In the book that I have it is used like I have it here, but netBeans says that inner classes can not have static declarations. my question is that if I cant have a static declaration here like the boook has, then how do I get the program to run with no main()? Here is the code that I have for the program with the error in it.:
* increasingOrder.java
* Created on October 23, 2006, 10:48 PM
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
* @author Joseph Porter
import java.util.*;
public class increasingOrder
    /** Creates a new instance of increasingOrder */
    public increasingOrder() {
    public static void smallestNumber(int a,int b, int c){
        if(a<b&&a<c)
            System.out.println("The smallest number is "+a);
                if(b<a&&b<c)
                    System.out.println("The smallest number is "+b);
                        if(c<a&&c<b)
                            System.out.println("The smallest number is "+c);
    public static void middleNumber(int a,int b,int c){
        if(a>b&&a<c)
            System.out.println("The middle number is "+a);
                if(b>a&&b<c)
                    System.out.println("The middle number is "+b);
                        if(c>a&&c<b)
                            System.out.println("The middle number is "+c);
    public static void largestNumber(int a,int b,int c){
        if(a>b&&a>c)
            System.out.println("The largest number is "+a);
                if(b>a&&b>c)
                    System.out.println("The largest number is "+b);
                        if(c>a&&c>b)
                            System.out.println("The largest number is "+c);
     * @param args the command line arguments
    public class Driver
        public static void main(String[] args)
            int inputA;
            int inputB;
            int inputC;
            Scanner keyboard=new Scanner (System.in);
            System.out.println("Input the first integer:");
            inputA=keyboard.nextInt();
            System.out.println("Input the second integer:");
            inputB=keyboard.nextInt();
            System.out.println("Input the third integer:");
            inputC=keyboard.nextInt();
            increasingOrder.smallestNumber(inputA,inputB,inputC);
            increasingOrder.middleNumber(inputA,inputB,inputC);
            increasingOrder.largestNumber(inputA,inputB,inputC);
        // TODO code application logic here
}

I have modified it just a little bit and it works
here is the code:
* increasingOrder.java
* Created on October 23, 2006, 10:48 PM
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
* @author Joseph Porter
import java.util.*;
class increasingOrder
    /** Creates a new instance of increasingOrder */
    public increasingOrder() {
    public static void smallestNumber(int a, int b, int c){
        if(a<b && a<c)
            System.out.println("The smallest number is "+a);
        else if(b<a && b<c)
             System.out.println("The smallest number is "+b);
        else if(c<a && c<b)
             System.out.println("The smallest number is "+c);
    public static void middleNumber(int a, int b, int c){
        if(a>b && a<c)
            System.out.println("The middle number is "+a);
        else if(b> a&& b<c)
             System.out.println("The middle number is "+b);
        else if(c>a && c<b)
             System.out.println("The middle number is "+c);
    public static void largestNumber(int a, int b, int c){
        if(a>b && a>c)
            System.out.println("The largest number is "+a);
        else if(b>a && b>c)
             System.out.println("The largest number is "+b);
        else if(c> a&& c>b)
             System.out.println("The largest number is "+c);
     * @param args the command line arguments
    public class Driver
         public static void main(String[] args){
              int inputA;
             int inputB;
             int inputC;
             Scanner keyboard=new Scanner (System.in);
             System.out.println("Input the first integer:");
             inputA=keyboard.nextInt();
             System.out.println("Input the second integer:");
             inputB=keyboard.nextInt();
             System.out.println("Input the third integer:");
             inputC=keyboard.nextInt();
             increasingOrder.smallestNumber(inputA, inputB, inputC);
             increasingOrder.middleNumber(inputA, inputB, inputC);
             increasingOrder.largestNumber(inputA, inputB, inputC);
        // TODO code application logic here
    oh, you can copy and paste, but you need to edit it a bit, cause with the code tag here, somehow it turn a<c to a><c

Similar Messages

  • Cannot download photoshop keep getting this message here is no application set to open the URL aam://SAPCode=PHSP?productVersion=15.0?passPhrase=Jk/PL84dakBKalJTbL3Hu4ZiWiqjFiZA0rsPWtr M3eVYgtj92vV99yOhTiRTbjskCrCLmoMlv0/d4gvEaQ6uduoZDTZ4GDOJXBoIHxflaPTM1

    I have a macbook pro Yosemite 10.10.2 and I am trying to download the trial version of photoshop and I keep getting this error here is no application set to open the URL aam://SAPCode=PHSP?productVersion=15.0?passPhrase=Jk/PL84dakBKalJTbL3Hu4ZiWiqjFiZA0rsPWtr M3eVYgtj92vV99yOhTiRTbjskCrCLmoMlv0/d4gvEaQ6uduoZDTZ4GDOJXBoIHxflaPTM1+jJmm/ftV1sLzUNTef/A OT2mMk23R+4kmmqgABdNM7SgbGr9p8EehC3rn92ghc=.
    I deleted the web history, cookies, downloaded java. etc and still the same.

    Install the Creative Cloud app. that's all there is to it.
    Mylenium

  • I keep getting this error in Dreamweaver when I am trying to upload my website?  Can you tell me what I am doing wrong?  here is the error message: /html - error occurred - Unable to create remote folder /html.  Access denied.  The file may not exist, or

    I keep getting this error in Dreamweaver when I am trying to upload my website?  Can you tell me what I am doing wrong?  here is the error message: /html - error occurred - Unable to create remote folder /html.  Access denied.  The file may not exist, or there could be a permission problem.   Make sure you have proper authorization on the server and the server is properly configured.  File activity incomplete. 1 file(s) or folder(s) were not completed.  Files with errors: 1 /html

    Nobody can tell you anything without knowing exact site and server specs, but I would suspect that naming the folder "html" wasn't the brightest of ideas, since that's usually a default (invisible) folder name existing somewhere on the server and the user not having privileges to overwrite it.
    Mylenium

  • I charged my phone and now I can't get it to turn on again. What do I do? I can't find a solution here. All I get are error messages.

    I charged my phone and now I can't get it to turn on again. What do I do? I can't find a solution here. All I get are error messages.

    Try pulling the battery for 10 minutes and putting it back in.  Try pressing and holding the power button for a while 15-30 seconds to see if it will respond.  Did anything happen to it, drop, submersion, etc. Was it functioning before you charged, When did it last work. Are you sure it charged up and the charger is working.

  • I cant install or uninstall my itunes. I get this error 'the feature you are trying to use is on a network resource that is unavilable' Now ive seen the solutions on here but im using windows 8.1. Ive tried all options so please can someone help?

    I cant install or uninstall my itunes. I get this error 'the feature you are trying to use is on a network resource that is unavilable' Now ive seen the solutions on here but im using windows 8.1 and none of them work for me. Ive tried all options so please can someone help?

    That doesnt work for me. I removed itunes through the windows cleaner method as shown in other posts and re-installed itunes. Now im getting this error
    iTunes was not installed correctly. Please reinstall iTunes
    Error 7 (Windows error 126)
    Also my Microsoft office has stopped working after i deleted Itunes which is really strange.
    Can somebody provide me a solution please....

  • I run windows 7/8 and lightroom 5.7  i am getting an error message and here it is " lightroom encountered and error when reading from its preview cache and needs to quit". I am getting this message repeatly.  What do I need to do to fix it.

    I run windows 7/8 and lightroom 5.7  I am getting an error message and here it is  " lightroom encountered an error when reading from its preview cache and needs t quit"    How do I fix this.

    THANKS
    Hank Wilkinson
    Please visit my web site  <http://www.hankwilkinson.com/> www.hankwilkinson.com for the latest of my photos
    For information on any of these photos please email me or call 612-756-9970

  • User is getting an error msg running report on her pc...but....

    Hi Everyone,
    Hope all is well....
    My user is getting an error msg when running my Disco. query
    when I sign on to her pc, the query runs fine.
    When my user comes to MY pc and signs on, she gets the same
    error msg.
    the error msg is:
    Microsoft Visual C++ RUNTIME library
    runtime error!
    Program c:\Oracle\BToolshome_1\bin\dis51usr.exe
    this application has requested the runtime to terminate it in an unusual way
    Please contact the application's support team for more information.
    Our Disco admin, tried to adjust her Discoverer profile settings to match mine. She still gets the error.
    I found this link, should I download a hotfix to her computer.
    She has other Disco. queries that run fine.
    Your ideas would be appreciated! thank you! sandra

    Hi Rod,
    Thx for writing...
    I just stopped by my user's office. She's in a meeting, so cannot access her pc.
    I use: 10.1.2.48.18 - if she uses the same, is this number helpful?
    Also, how do I request of IT to do the install of: MS Visual C++ Redistribution Packages?
    Is that on the Office XP cds?
    (You know, I think on occasion I get this msg at home, after loading 2 years ago VB6 at home.
    How would I resolve it at home... just wondering....)
    thx, sandra

  • Hello Vivek here, i was trying to download apps from itunes and i could get the error message as itunes currently not available for past 2 days

    Hello Vivek here, i was trying to download apps from itunes and i could get the error message as itunes currently not available for past 2 days, is there any problem ideally or, please leave a reply
    <Email Edited By Host>

    Hi vivekanandanganesan,
    Thanks for using Apple Support Communities.  This article has some steps you can try if you are unable to connect to the iTunes Store:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Cheers,
    - Ari

  • Since I can not log in bug report page, not even getting an error message, I'll write all my issues with ios8 here...

    Since I can not log in bug report page, not even getting an error message, I'll write all my issues with ios8 here... I have an iphone 4S and I did the last update. Now I am in trouble.
    1. When I move the "sound on/off" button, I get it buzzing 10 times before the setting is changed and I can do anything else, just not reacting to the round button on screen touches.
    2. Impossible to copy text from most websites into notes.
    3. Impossible to delete an email account in settings.
    4. Uses up the battery twice as fast as before. I have "update apps" setting turned off, just reading a couple of mails, making a couple of photos and open maps apps twice a day, and the battery is dead well before the evening.
    5. Got extremely slow, and it was getting slower and slower with every system update.
    I'm sure I forgot something... But well, that already a lot.

    Well, actually number 3 in my list is not true any more, I just tried to delete my account 15 times, then I've written my post, then half an hour later my Settings finally updated my accounts list. Whohoo
    I did not try restoring it yet, thank you for the link!

  • I am trying to re-install Photoshop CS6. The files have downloaded but I get and error message that the Adobe Support Advisor is required to determine what the installation probIem is. I click on the link that says "get the Support Advisor here only to be

    I am trying to re-install Photoshop CS6. The files have downloaded but I get and error message that the Adobe Support Advisor is required to determine what the installation probIem is. I click on the link that says "get the Support Advisor here only to be told the Support Advisor no longer exists!! A blind loop. I need to have Photoshop CS6 installed...what do I do from here??

    The CC Cleaner Tool assumes the Akamai Download Manager is activated and it has not. It seems to be the missing file that triggers the error message. \in a previous re-install I was prompted to download & install the Akamai Download Manger, but not this time. Is there somewhere on the Adobe website that I can download it??

  • In attempt to burn blu-ray, I get QuickTime error 0.  Takes hours to export a 7 minute movie from timeline, then get notice it fails.  What's going on here?

    New problem just started 24 hours ago.  When I try to export from the time line to create a QuickTime file, a 7 minute movie on time line takes 3 hours to export and then the export fails, where as a few days ago, that export would take about 10 minutes at most.  I get the same failure notice when I try to share to blu-ray, DVD, or Vimeo.  Tried to use compressor, no such luck as compressor failed to make a .mov file.  I get QuickTime error 0 message about 5 minutes into trying to share to Blu-Ray now.   Does anyone know what is going on here?  I'm running latest update of Snow Leopard on an intel Mac Pro and the latest update to Final Cut Pro X.  I've also installed QT 7.6.6 to use in creating time lapse movie files.

    Same problem here, too. Final Cut Pro X 10.0.3 on OS 10.6.8. However, it is only doing it on ONE of my projects. A 4-second test project burned successfully.
    I'm  actually going to use iDVD to burn copies for a few people, so I only need the movie file from FCPX.
    Would someone please post best export settings for use on a DVD? In FCPX, the project is  in HD (1080p) with all media optimized to ProRes 442. I know it will have to be down-sampled to DVD resolution, but I've always been curious to know what settings will result produce the best possible quality in DVD resolution.
    Thank you!
    Bart

  • HT2693 I'm trying to do a restore on a my IPhone 3Gs and I get and error code 1, here is my situation. I sold this phone on Ebay the person tried to jail break it then stated the phone was broke and returned it for a refund I lost my money and my phone! H

    I'm trying to do a restore on a my IPhone 3Gs and I get and error code 1. The iPhone "iPhone" could not be restored. An unknowen error occured (-1).
    Here is my situation. I sold this phone on eBay the person tried to jail break it then stated the phone was broke and returned it for a refund. I lost my money and my phone! How can I fix my phone?
    I get the error when trying to restore the firmware!
    Help Please!

    if I were you I would try to ask it in the iphone forum
    https://discussions.apple.com/community/iphone/iphone_hardware
    this is the appletv forum where people may not know much about iphones

  • Getting an error - group function not allowed here

    Below is the merge statement...
    getting an error - group function not allowed here
    WHY????
    merge into summary
    using
    (select
    a.user_id,
    min(a.start_time_utc),
    max(a.end_time_utc),
    sum(a.duration_seconds),
    /*total_upload
    total_download
    total_traffic,*/
    max(r.package_id),
    last_usage_charge, -------hard coded
    max(r.peak_rate),
    max(r.bst_plantype),
    max(r.free_value), ---for free value
    a.IsPeak,
    sum(a.TotalDiscount)
    from aaa_sessions a,rate_plan r,subscriber_info si
    where
    si.EXTERNAL_ID=a.USER_ID
    and
    si.PACKAGE_ID=r.PACKAGE_ID
    group by
    user_id,bst_plantype,ispeak)t ------do we need to use alias here
    on
    (summary.user_id=t.user_id
    and
    summary.type_of_summary=t.bst_plantype
    and
    summary.ispeak=t.ispeak)
    When matched then
    update
    set
    start_date =decode((t.start_time_utc-summary.start_date)-abs(t.start_time_utc-summary.start_date),0,summary.start_date,t.start_time_utc),
    end_date=decode((t.end_time_utc-summary.end_date)-abs(t.end_time_utc-summary.end_date),0,t.end_time_utc,s.end_date),
    total_duration=summary.total_duration+sum(duration_seconds),
    total_upload=summary.total_upload+sum(upload_bytes),
    total_download=summary.total_download+sum(download_bytes),
    total_traffic=summary.total_upload+sum(upload_bytes)+summary.total_download+sum(download_bytes)
    When not matched then
    INSERT
    (user_id ,
    start_date,
    end_date,
    total_duration,
    /*total_upload
    total_download
    total_traffic,*/
    rate_plan_id,
    last_usage_charge,
    peak_rate,
    type_of_summary,
    IsPeak,
    TotalDiscount)
    VALUES
    (t.user_id,
    t.start_time_utc,
    t.end_time_utc,
    t.duration_seconds,
    /*t.output_bytes,
    t.input_bytes,
    t.output_bytes+aa.input_bytes,*/
    t.PACKAGE_ID,
    1, ---hard coded the value
    t.PEAK_RATE,
    t.BST_PLANTYPE,
    t.ispeak,
    t.free_value);

    This is the query,...
    Its giving no complilation errors..
    I have not used aggregate functions in the insert/update..
    have used only decode...
    and nowhere i found that aggegate functions not allowed in the insert/update stmts of merge..
    Can u please post a link where it is mentioned...
    MERGE INTO summary
    USING (SELECT a.user_id, MIN (a.start_time_utc) stc,
    MAX (a.end_time_utc) etc, SUM (a.duration_seconds) ds,
    SUM (a.download_bytes) download,
    SUM (a.upload_bytes) upload, MAX (r.package_id) pkg_id,
    MAX (r.peak_rate) p_rate, MAX (r.offpeak_rate)
    ofp_rate,
    MAX (r.bst_plantype) plan_type,
    SUM (r.free_value) free_val, a.ispeak,
    MAX (r.peak_pulse) p_pulse,
    MAX (r.offpeak_pulse) ofp_pulse
    FROM aaa_sessions a, rate_plan r, subscriber_info si
    WHERE si.external_id = a.user_id
    AND si.package_id = r.package_id
    GROUP BY user_id, bst_plantype, ispeak) t
    ON ( summary.user_id = t.user_id
    AND summary.type_of_summary = t.plan_type
    AND summary.rate_plan_id = t.pkg_id
    AND summary.ispeak = t.ispeak)
    WHEN MATCHED THEN
    UPDATE
    SET start_date =
    DECODE ( (t.stc - summary.start_date)
    - ABS (t.stc - summary.start_date),
    0, summary.start_date,
    t.stc
    end_date =
    DECODE ( (t.etc - summary.end_date)
    - ABS (t.etc - summary.end_date),
    0, t.etc,
    summary.end_date
    total_duration = summary.total_duration + t.ds,
    total_download = summary.total_download + t.download,
    total_upload = summary.total_upload + t.upload,
    total_traffic =
    summary.total_upload
    + t.upload
    + summary.total_download
    + t.download,
    last_usage_charge =
    DECODE (t.plan_type,
    0, (t.ds - t.free_val)
    / DECODE (t.ispeak, 0, t.ofp_pulse, p_pulse)
    * DECODE (t.ispeak, 0, t.ofp_rate, t.p_rate),
    ((t.download + t.upload) - t.free_val
    * DECODE (t.ispeak, 0, t.ofp_rate, t.p_rate)
    WHEN NOT MATCHED THEN
    INSERT (user_id, start_date, end_date, total_duration,
    total_download, total_upload, total_traffic, rate_plan_id,
    last_usage_charge, peak_rate, type_of_summary, ispeak,
    totaldiscount)
    VALUES (t.user_id, t.stc, t.etc, t.ds, t.download, t.upload,
    t.download + t.upload, t.pkg_id,
    DECODE (t.plan_type,
    0, (t.ds - t.free_val)
    / DECODE (t.ispeak, 0, t.ofp_pulse, p_pulse)
    * DECODE (t.ispeak, 0, t.ofp_rate, t.p_rate),
    ((t.download + t.upload) - t.free_val
    * DECODE (t.ispeak, 0, t.ofp_rate, t.p_rate)
    t.p_rate, t.plan_type, t.ispeak, t.free_val);
    COMMIT;

  • When i am posting the Outbound delivery,here getting Runtime error

    Hello
             When i am posting the Outbound delivery,here getting Runtime error
    This is error analysis report
    Error analysis
        Short text of error message:
        No RFC destination is defined for SAP Global Trade Services
        Long text of error message:
        Technical information about the message:
        Message class....... "/SAPSLL/PLUGINR3"
        Number.............. 002
        Variable 1.......... " "
        Variable 2.......... " "
        Variable 3.......... " "
        Variable 4.......... " "
    Please give me solution for this

    HI,
    Probable some missing customising for SAP Global Trade Services - Plug-In.
    Check with your functional consultant if the configuration is correct.
    Check in SPRO.
    Sales and Distribution>Foreign Trade/Customs>SAP Global Trade Services - Plug-In
    Regards,
    Ankur Parab

  • I am trying to establish a new appleID for my daughter--but we get an error message that her email is already "in use".

    i am trying to establish a new appleID for my daughter--but we get an error message that her email is already "in use". why?

    Try:
    iOS: FaceTime is 'Unable to verify email because it is in use'

Maybe you are looking for