I have a programming question

Hi
I have a programming question here. I spent a lot of time doing it, but I still can't get it. Here is the question :
Write a method called countTo that takes one integer as a parameter and prints a
comma-separated list of the numbers from 1 to the value of the parameter, or an
appropriate error message if the parameter is less than one. In either case (if a list
of numbers is printed, or an error message is printed), after printing, the cursor
should be advanced to the next line.
For example, if the parameter has a value of 1, the method should just print the
the value 1 to the screen followed by a new-line character. If parameter has a value
of 5, the method should print the following (exactly as shown, make sure there is
no comma after the last value, and that all values are on one line with no spaces
between them):
1,2,3,4,5
This method should only print to the screen, and should not return a value.

I have a programming question here. I spent a lot of
time doing it, but I still can't get it. Please post what you have done so far.

Similar Messages

  • New to IPhone and have a few Questions?

    To start I want to say that I am a long time (25+ years) veteran of technology but am new the the IPhone. My IPhone is not Jailbroken and would like to keep it that way if I can. Allthgouh I did jailbrake it with blackra1n for about 30mins then I did a factory reload and let it be as it started acting stupid once I started installing apps from unofficial sources.;) Im a x86 nerd and NOT a MAC guy. I haven't sat down at a MAC/Apple in about 15/20 years.
    I just got my first IPhone 3Gs/16GB. (Coming from a BlackBerry Curve 8310) the other day and although it is taking some time getting used to, I think I will like it more then I do once I get used to it.
    Anyhow I have a few questions to start off with. I did some googleing already but just want to make sure I understand a few things.
    All though I did the BlackRa1n jail break thing and installed a few apps then it locked up and failed to turn on or something so I did the whole reload from itunes and now its all good. Anyhow.....
    1.) It appears as if one can not run a program from the home sreen and have it run in the background while doing other things? Take the many SIP Clients I have played with in the last 48 hours. Once I open the SIP Client and connect if I hit the physical button below the screen the program closes, thus the sip client no longer works. Pretty much most if not all apps iv installed from the App Store act like this. Is this the case? Does the IPhone not mutitask at all or verywell?
    2.) Are there any SIP Clients that work over 3G? All the ones iv tried say they are for WIFI only. The SIP Clients work fine when on WIFI. It sounds like this is Apples way of controlling/monopolizing the voice/data/voip aspect of the platform/device. Im sure they would lose a lot of money if everyone did what I am trying to do.Just my opinion.
    3.) Maybe I play with it to much but **** the battery dies fast. Is there anyway to optimize the battery at all other then for me not to use it as much?
    4.) How can I remote lock it if I lose it or it gets stolen? I read somewhere this could be done.
    5.) Are there any other Shells/HomeScreens/Themes that can replace the standard 4x4x4 row icons?
    6.) The speaker phone (when on a call) seems kinda low even when turned all the way up. Is there any way to make it louder?
    7.) I am using the built in VPN client to connect to my works PPTP Windows 2003 VPN server but the client randomly disconnects through out the day. Is there any way to have some type of keep alive set or are there any other VPN Clients that I can use?
    Sorry for all this just thought I would ask for feedback.
    Many thanks for any help anyone can provide,
    SomeOneOnLine

    1.) It appears as if one can not run a program from the home sreen and have it run in the background while doing other things? Does the IPhone not mutitask at all or verywell?
    The iPhone SDK does not permit ANY 3rd party apps from running in the background or multitasking. It does provide for push notifications which can simulate certain background activity in terms of receiving external notifications while the app is actually closed. This works reasonably well with IM apps, news, sports, weather, travel updates and some peer-to-peer games.
    2.) Are there any SIP Clients that work over 3G? All the ones iv tried say they are for WIFI only.
    Just how would the SIP server connect to the cell carrier 3G network? Do you know of ANY that do??
    3.) Maybe I play with it to much but **** the battery dies fast. Is there anyway to optimize the battery at all other then for me not to use it as much?
    3G voice and data connections are culprits. Avoid email push and frequent fetching. See this Apple article for detailed suggestions.
    http://www.apple.com/batteries/iphone.html
    4.) How can I remote lock it if I lose it or it gets stolen? I read somewhere this could be done.
    MobileMe Find My iPhone will locate, set a passcode lock and optionally wipe all data from your iPhone. You have to be a MobileMe subscriber.
    5.) Are there any other Shells/HomeScreens/Themes that can replace the standard 4x4x4 row icons?
    No. Apple does not permit this.
    6.) The speaker phone (when on a call) seems kinda low even when turned all the way up. Is there any way to make it louder?
    You can troubleshoot your iPhone as described in the User Guide - restart, reset, reset settings, restore. Or, get hearing aids
    7.) I am using the built in VPN client to connect to my works PPTP Windows 2003 VPN server but the client randomly disconnects through out the day. Is there any way to have some type of keep alive set or are there any other VPN Clients that I can use?
    See this Apple support article:
    http://support.apple.com/kb/HT1980
    BTW, discussion of "unauthorized modifications" such as jailbreaking is prohibited under the forum Terms of Use you agreed to when joining. Best not to even mention it or risk getting your post deleted.

  • Thinking of getting an iPad but have a few questions

    After using the iPhone 4 (3GS previously) and really liking the OS on it, I am thinking of purchasing an iPad to make reading ebooks easier, also, having the iPad would be more convenient for me to quickly go on the net in my home (or other wifi area, but mostly home use) to seek information and also check, send emails, rather than having to switch the computer on all the time and then having to wait for it to load up and also with the iPad, the larger screen would make email, internet use and ebook use more pleasurable due to the iPad's larger screen when compared to using my iPhone.
    I have a few questions that I would like to ask to iPad users, who could perhaps answer them for me?
    In my household we have 2 iTunes libraries, one for my iPhone and one for my girlfriend's iPod. I created a separate iTunes library for each of the devices so that each one would have a totally separate library and therefore the possibility of having one overwriting the others library would be impossible.
    Now ideally I would be wanting to create a separate iTunes library for the iPad, but I would want to add the music and apps, email accounts, bookmarks that I have on my iPhone and add them onto my iPad. Would this possible?
    Also. I believe some apps have specific versions for either iPhone or iPad, so would the iPhone versions of the apps run on the iPad, or would I need to download the iPad versions of those particular apps?
    Also. I have a number of DVD's that I have converted and then dragged and dropped the video off of them into iTunes. If I am correct, would I need to reconvert those videos/DVD's again, as the video size (screen size) would be for the iPhone and therefore a smaller screen, which would not look very good on the iPad's much larger screen. If this is the case, can anyone recommend a good video converter for converting video for the iPad and what settings need to be used for the iPad?
    I also would be wanting to have a number of photos on the iPad. To get them onto the iPad, is it just a simply matter of selecting the pictures I have on my computer that I want added to my iPad, and then just dragging and dropping them into iTunes, then connecting and syncing the iPad to get them added on to the iPad, or is there an easier method?
    Thanks in advance

    Funny you should mention Macs, but I'm thinking of my next computer been an iMac, and using the Parallel Desktop software so that I can have functionality of been able to switch to Windows when needed to run the programs that are not Mac compatibly. I'm swaying towards Mac has I have heard their OS is more reliable and secure compared to Windows, and the need to have anti virus and anti spyware programs on a Mac is not really needed, but I figure if I can run Windows on a Mac then I have the best of both worlds, anyhow back on to topic
    I do indeed take backups of the various libraries and related data for them.
    I have used the Dropbox app and was impressed, but I did prefer an app called iFiles which allows me to carry various files/files types around with me on my iPhone, such as PDF files, Word doc files etc.
    The reason I use the method of having a separate iTunes library for each device we use on the computer, (my iPhone, girlfriend's iPod, and soon maybe an iPad) is because I accidentally replaced the music I had on an iPod I had at the time with my girlfriend's music. So from then on, that's why I have created a separate library for each Apple device, and so far I have never accidentally messed up another devices contents.
    Thanks for the help its much appreciated.

  • Please answer a programming question for an admin

    I'm not a programmer (although my interest is growing), so I can't answer this question in a discussion regarding how Win32API w/OLE and COM is SO much better than programming for Unix/OS X applications.
    The original discussion was in regards to OS X's superior Unix based security, he devolved to this. Having only begun my venture into programming, his questions are a little above my head at this point. I'm also interested (as an amature programmer), how this would be accomplished in OS X/Unix.
    Thanks in advance.
    Here's his position:
    *(1st entry)*
    I have unsed Windows and many flavors of Unix and I have written programs in Assembler, Fortran, Pascal, Cobol, RPG, Smalltak, Basic, PowerBuilder, Delphi, C, C++, C#, Java, and Perl, and I have been programming for over 20 years, so I do have extensive knowledge about programming.
    So I have one question for you:
    If you had to build a business application that has to allow users to, spell and grammer check, and perform financial calculations, and render the HTML, how would you compare the effort to do this in Windows versus that in Linux, AIX, Solaris or any other Unix operating system?
    I can make this business application have these features in ONE DAY on Windows, because COM and OLE lets me, use Word to spell and grammer check, Excel to do the financial calculations, and IE to render the HTML!
    I make my living building complex customized business software, and Windows allow me to build these applications by myself in weeks, when it would take me and a team of programmers months to do these same things in Unix because of the lack of an the Win32 API, COM, and OLE, or I would have to BUY third party libraries that did these things, and deal with the licensing, versioning, and vendor problems that go with them, and none of those third party librabries would be close to Word, Excel, and IE in CAPABILITY!
    HONESTLY tell me and others reading this thread how you would go about create the customized business application I described above by yourself in a Unix instead of Windows, and tell us how many MONTHS or YEARS it would take you, or how you would have to BUY some other third party libraries to do what Word, Excel, and IE!
    Anyone who thinks a Unix has more CAPABILITIES than Windows, has never used Win32API/COM/OLE/.Net, and does not build customized complex business software for a living, because we people that do are the reason that you find some much customized business desktop software for Windows, and so little for any Unix.
    I have nothing against Unix, and it is great for simple business tasked server software, but for complex business tasked desktop software Windows with Win32API/COM/OLE/.Net wins hands down!
    *(2nd Entry)*
    A System administrators view of an operating system and an application developers view are entirely different, and the Win32API/COM/OLE/.NET simply make my job so much easier, and you simply don't understand because you do not have to deal with the "dirty' details of making what a user wants, which is why your definition of "integration" and mines are totally different!
    With the spell check you talked about, how will you keep in in synch with the dictionary in Word where the user is constantly adding and removing words?
    No, you would have the user to have to maintain two different spell check dictionaries, and you would totally ignore the grammer check requirement!
    Cutting and pasting data between applications is simple integration, and not the complex type that I am talking about.
    Can you make your application display and use the MacGourmet menus appear in its own window, and to access and use the MacGourmet functionality (ie. search for a recipe) in its own window?
    Give me one example of a Unix application that can display the menus of another application, yet alone control its features!
    Of course you can't, because you need COM and OLE!
    I am quite familiar with different flavors of Unix, but those operating systems do not have the rich API and program integration features namely COM and OLE that Windows has, because it violates the Unix idea of security by process isolation!
    Yes that idea of process isolation keeps the operating system safe from malicious code in applications and from one application taking the others down, but you lose the power of programs working together, and you simply cannot build the type of customized business applications that I build by myself, without reinventing the wheel over and over and without having a large team with lots of programmers.
    For example, my customers and millions of others spend all day working in Word and Excel, and the Windows idea that I can transparently integrate my complex business applications right in Word and Excel menu, and into their templates and macros, is why third party developers like me prefer Windows over Unix, regardless of how much better security in Unix is.
    Do not get me wrong, Java improves business application development on Unix, but unfortuantely it is not feasable to rewrite ever legacy application in Java, and Java does not integrate well with other programming languages.
    I used to code business application for both IBM MVS and Sun Solaris, and I never want to go back to those "bad" old days again, once I took the time to learn how to PROPERLY code using Win32API/COM/OLE/.NET!

    At risk of feeding the troll I'll wander in here:
    NOTE: Since this is an Apple programming boards and I have limited experience programming on traditional Unix systems (and most of that in college) I will confine my answers to the area I know.
    If you had to build a business application that has to allow users to, spell and grammer check, and perform financial calculations, and render the HTML, how would you compare the effort to do this in Windows versus that in Linux, AIX, Solaris or any other Unix operating system?
    I can make this business application have these features in ONE DAY on Windows, because COM and OLE lets me, use Word to spell and grammer check, Excel to do the financial calculations, and IE to render the HTML!
    Note that this scenario assumes the user has Microsoft office installed. The person argues that they don't have to purchase libraries to program but what they are effectively doing is simply transferring that cost to user. I don't have to purchase libraries but everyone of my users needs to. Good for you, very good for Microsoft but bad for your customer - IMHO. OK, I know "But all Windows business users have Office installed already." When it comes free with the system then I'll retract my objection.
    Under OS X and Cocoa many of these functions are intrinsic to the system layer and do not require any applications to be installed. Using Cocoa you can write a simple Word processor that has rulers, full font manipulation (including kerning, spacing and leading), Document Save and Load, Printing, Export to PDF as well as spell-checking in under 10 lines of actual code. Adding a custom file type and icon for full system integration will add another 5 minutes to your programing.
    In case you think I'm blowing smoke here is a tutorial from 2002 (yes, this has been possible for over 5 years) outlining the 8 line Word Processor build in Cocoa. http://www.stone.com/TheCocoa_Files/What_s_sofunny.html
    And yes, Cocoa also includes Webkit so I can add full HTML rendering by dragging in a WebKit window to my user interface. For an experienced Cocoa programmer this certainly sounds like less than a day of programming - in fact it sounds like a good tutorial for a middle-experienced training day or 2 day class in Cocoa.
    I won't include the link to the 1 line web browser you can build in Cocoa using Webkit because it's shorter than the description. Feel free to search for it if you want to.
    HONESTLY tell me and others reading this thread how you would go about create the customized business application I described above by yourself in a Unix instead of Windows, and tell us how many MONTHS or YEARS it would take you, or how you would have to BUY some other third party libraries to do what Word, Excel, and IE!
    BUT this is all done from the stock system that is on every OS X computer not simply those with Office installed. Obviously you'd need to add some features that were more complicated than this - because any halfway decent programmer could turn this stuff out - and polish takes a while but to meet the requirements of the challenge it would take 2 days tops.
    Is every *nix programming environment like this? I don't know I can only answer for the system that I have experience with and is the concern of this board. If you really have questions regarding *nix programming then I suggest you find an appropriate board and troll^H^H^H^H^H ask there.
    If you're ever serious about programming on the Mac feel free to stop by and actually take a look at it. I think you'll be surprised.
    =Tod

  • I just got a new iPad 2 and I have lot of questions. I was able to wirelessly link my iPad and iTunes on my PC. I was able to SYNC my email and calendar (new only no history), however I have not been able to SYNC Outlook contacts.

    I just got a new iPad 2 and I have lot of questions. I was able to wirelessly link my iPad and iTunes on my PC. I was able to SYNC my email and calendar (new entries only no history), however I have not been able to SYNC Outlook contacts. Outlook has multiple contact lists. Only one has any data. I can't find a way to delete the others and I can't keep the one I want to use at the top of the list. Any ideas?
    I have a question about email. I have several thousand emails in 10 or so days. How can I select multiple emails for deletion in stead of one at a time? How do I designate emails from a given sender as junk or block certain senders?
    Ron

    the spcs page on this site state which video formats the ipad supports
    I'd suggest converting your old videos to one of those formats
    handbrake is a free program which does this for you
    itunes used to be able to too when I right clicked incompatible media but don't see the option any more
    or maybe it only show when one right click incompatible media and currently my lib don't have any
    about the music then it's odd what formats are they?
    if they are acc protected have you tried to remove the DRM this can be don using itunes as
    apple don't use DRM for music any more

  • I have solved some questions, please check if my answers are correct

    Hi every Java aces,
    I have solved some programming questions, please check if my answers are correct. Thanks
    Here are the questions and the answers to each question
    (a) Write a method called add that takes three integers as parameters and returns an
    integer that is the sum of the three parameters.
    (b) Write a method called max that takes three integers as parameters and returns the
    largest of the three integers.
    (c) Write a method called printMax that takes three integers as parameters and prints
    the maximum value to the screen. The method should return nothing. The method
    should print the words \The maximum value is " followed by the maximum value,
    followed by a new-line character. You should try to use the max method that you
    wrote earlier.
    (d) Write a method called min that takes three integers as parameters and returns the
    smallest of the three integers.
    (f) Write a method called ticketPrice that takes one integer parameter representing
    the age of a person, and returns the price of a movie ticket in dollars (as a
    oating
    point value). Children under 6 get in for free (0.00), people that are 18 or under
    pay 8.50, senior citizens (65 or older) pay 6.50, and all other people pay 10.00.
    (g) Write a method called isDivisor that takes two integers as parameters and returns
    true if the rst parameter is a divisor of the second parameter or false otherwise.
    We say that m is a divisor of n, or that m divides n, if there is an integer k such
    that n = k m. Note that 1 divides every integer, and every integer divides i
    itself .
    here are my codes
    public class Methods
    // This is method (a)
    public static int add (int a, int b, int c)
    int sum = a + b + c;
    return sum;
    // This is method (b)
    public static int max (int a, int b, int c)
    int largest;
    if (a > b)
    if (a > c)
    { largest = a; }
    else
    { largest = c;}
    else
    if (b < c)
    { largest = c; }
    else
    { largest = b;}
    return largest;
    // This is method (c)
    public static void printMax (int d, int e, int f)
    int maxValue;
    maxValue = max (d, e, f);
    System.out.println ("The maximum value is " + maxValue);
    // This is method (d)
    public static int min (int a, int b, int c)
    int smallest;
    if ( a < b )
    if ( a < c )
    { smallest = a; }
    else
    { smallest = c; }
    else
    if ( b > c )
    { smallest = c; }
    else
    { smallest = b; }
    return smallest;
    // This is method (f)
    public static double ticketPrice (int age)
    double price;
    if ( age < 6 )
    { price = 0.00; }
    else
    if ( age <= 18 )
    { price = 8.50; }
    else
    if ( age < 65 )
    { price = 10.00; }
    else
    { price = 6.50; }
    return price;
    // This is method (g)
    public static boolean isDivisor ( int m, int n )
    boolean result;
    int check1;
    double check2;
    check1 = n / m;
    check2 = (double)n / m;
    if ( check2 == check1 )
    { result = true; }
    else
    { result = false; }
    return result;
    }

    Here are my codes
    // This is method (a)
      public static int add (int a, int b, int c)
        int sum = a + b + c;
        return sum;
      // This is method (b)
      public static int max (int a, int b, int c)
        int largest;
        if (a > b)
          if (a > c)
          { largest = a; }
          else
          { largest = c;}
        else
          if (b < c)
          { largest = c; }
          else
          { largest = b;}
        return largest;   
      // This is method (c) ?
      public static void printMax (int d, int e, int f)
        int maxValue;
        maxValue = max (d, e, f);
        System.out.println ("The maximum value is " + maxValue);
      // This is method (d)
      public static int min (int a, int b, int c)
        int smallest;
        if ( a < b )
           if ( a < c )
           { smallest = a; }
           else
           { smallest = c; }
        else
          if ( b > c )
          { smallest = c; }
          else
          { smallest = b; }
        return smallest;
    // This is method (f)
      public static double ticketPrice (int age)
        double price;
        if ( age < 6 )
        { price = 0.00; }
        else
          if ( age <= 18 )
          { price = 8.50; }
          else
            if ( age < 65 )
            { price = 10.00; }
            else
            { price = 6.50; }
        return price;
      // This is method (g)
      public static boolean isDivisor ( int m, int n )
        boolean result;
        int check1;
        double check2;
        check1 = n / m;
        check2 = (double)n / m;
        if ( check2 == check1 )
        { result = true; }
        else
        { result = false; }
        return result;
       // This is method (h)
      public static boolean isProduct ( double a, double b, double c )
        boolean result;
        if ( a == b*c )
        { result = true;}
        else
        { result = false;}
        return result;
         

  • Why does Firefox give this message when I do not have another program running "Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system."

    Question
    why does Firefox give this message when I do not have another program running or another window open - "Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system." edit

    See also "Hang at exit":
    *http://kb.mozillazine.org/Firefox_hangs
    *https://support.mozilla.com/kb/Firefox+hangs

  • Beginner programming questions

    Okay so I am looking at learning a programming language using VS express but I have a few questions first.
    What language would you recommend that will teach me about the inner workings of a computer, such as memory management etc.
    What tips would you give for tidy code? I hate my work to be messy.
    If I ever became decent at the language, would it ever be worth getting a MS qualification for development?
    I apologize if I have posted this in the wrong section, I am new to these forums
    Thanks in advance

    Okay so I am looking at learning a programming language using VS express but I have a few questions first.
    What language would you recommend that will teach me about the inner workings of a computer, such as memory management etc.
    What tips would you give for tidy code? I hate my work to be messy.
    If I ever became decent at the language, would it ever be worth getting a MS qualification for development?
    I apologize if I have posted this in the wrong section, I am new to these forums
    Thanks in advance
    First, I recommend that you consider getting the FREE Visual Studio 2013 Community edition so you will have access to a complete tool set:
    https://www.visualstudio.com/downloads/download-visual-studio-vs
    If you really want to learn "about the inner workings of a computer, such as memory management etc.", you can learn C++. However, as most modern languages use a managed environment, and C++ has a very steep learning curve,
    I suggest you start with C# (syntactically similar to C++), then investigate C++ later.
    As far as "What tips would you give for tidy code? I hate my work to be messy." is concerned, let Visual Studio format your code and make it readable automatically. If, after some experience, you don't like default formatting, you can use
    VS Tools->Options to change it to your liking.
    For getting in the door to a good job, Microsoft certifications, like degrees, will help you open the door. Staying inside will depend on your skills and productivity.

  • Just got a MB, Have a few questions

    Ok, so I have just received my white MacBook, Everything is great super fast machine.
    However I have a few questions about the Finder.
    The Hard Drive on this computer is 160GB, I have added 11 or so GB of music and a few other files, the computer says I have 123 GB remaining which is probably right. So my question is how much space does leopard Take up? (How much space is usually free on newly purchased computer?)
    How do you uninstall programs in OS X?
    Lastly, is there any easy way to tell where the hard drive space is being used? (Kind of like the pie charts in Windows Explorer)
    Thanks

    Leopard on its own takes up about 9 GB. An additional 4 to 5 GB is taken up by additional applications that come prebundled with a Mac. To find out what's occupying space, see my FAQ*:
    http://www.macmaps.com/diskfull.html
    Most applications uninstall by just dragging them to the trash and emptying the trash. Some leave behind crumbs in the preferences or library folder, and come with their own uninstaller program on their disk image or optical disk installer. A few have no uninstaller but can be removed with http://www.appzapper.com/
    Check with the vendor if there are specific system independent resources they install, so you don't find yourself with resources that won't survive a system update, or the installation of another application which require those resources to be of a different version, such as fonts.
    - * Links to my pages may give me compensation.

  • Why isn't there a TechNet forum for ADFS yet? They have been forwarding questions to the "Project Geneva" forum for years now.

    Why isn't there a TechNet forum for ADFS yet? They have been forwarding questions to the "Project Geneva" forum for years now.
    It would be nice if there was IT Pro specific forum. The MSDN Geneva forum has people who have programming questions for WIF in addition to people trying to get ADFS and Web App Proxy setup.
    WHY?

    Given the growing importance of Office 365 and the role of ADFS in some of the larger deployments, that may happen. Someday.
    It is somewhat arbitrary.
    AD DS, AD CS, AD FS, and AD RMS are all considered components of Active Directory.
    I suppose that's what the AD stands for...
    Yet, most ADCS questions are posted and answered in the Technet Security forum.
    ADFS questions are often referred to Project Geneva.
    Directory Services has its own forum.
    Group Policy has its own forum.
    +++
    If you look in "related threads", someone asked a question precisely about ADCS:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/f6abf662-7927-4f72-91db-433c95eddcc8/why-isnt-there-a-forum-dedicated-to-certificate-services?forum=winserversecurity
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

  • General Game Programming Questions

    Hey All,
    I'm a reformed C# / VB.Net MMOPG game programmer who want's to take a crack at making MMORPG's using Java. Mainly because I'm tired of paying the big $$$ for M$'s products when I'm finding Java has a nice assortment of high quality RAD tools and the such for next to nothing, if not free. The only free IDE's for the .Net platform at the moment is a still too early in beta (buggy) to be productive with. Anyways after buying a couple of Java books and knocking them out in a week's time, I'm feeling pretty confident about making Java work for me. I do however have a few questions that the books I purchased failed to answer so here they are..
    Is it possible to compile Java applications (game clients in my case) in a stand alone executable form? I would like a install system where users can just install my game client without them having to worry about having the latest versions of Java ,etc, ie.. I want it to be a easy one click install application.. Does Java offer this? That was another thing that turns me off about the .Net platform, many people don't want to take the time to install the .Net runtime just to check out my game applications...
    I was wondering how Java handles Images, Does Java package up all your images into a .Jar file? A game client can have 100's of sprite sheets, mesh's, skins, etc, ie.. Say I were too make a Applet game client, how would java handle all the images? Would the players download the images while the applet loads?
    Well thats really all I wanted to know.... Thanks In Advanced...

    If you do a search on the forums for "java exe" or something similar, you will probably find about a billion posts asking and answering the same question. The answer is yes, but you will of course make the game windows dependent. Also I think the executable turns out to be quite large and doesn't work without its quircks... a better approach is to install the java runtime with the install of your game. User would never even notice.
    As far as how java handles images, for an applet the images will be downloaded with the applet, but will not be loaded until called upon in the program. You can package all the images into a jar file, or you can just leave them in a directory/directories, although packaging them into one jar would be faster due to downloading only one file and compression.

  • Getting this error while opening a folder : This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the Default Programs control panel

    Hi,
    While trying to open a folder on my Windows 7 Home Premium, an error comes "This file does not have a program associated with it for performing this
    action.  Please install a program or, if one is already installed, create an association in the Default Programs control panel." I tried searching on the net but did not get great support for the issue when it happens with folder opening.

    Hi Nikunj Shah,
    First, I suggest you download
    Microsoft Safety Scanner or
    Malicious Software Removal Tool to run a full scan.
    The error messages here seems to be caused by the corrupted registries, which related with the folder association.
    You may take a try to merge the following registry settings to reset the folder association, before that, remember to backup your registry settings first:
    How to back up and restore the registry in Windows
    Copy and paste the following commands into Notepad, and save it to a .reg file:
    =================
    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\Folder]
    "ContentViewModeLayoutPatternForBrowse"="delta"
    "ContentViewModeForBrowse"="prop:~System.ItemNameDisplay;~System.LayoutPattern.PlaceHolder;~System.LayoutPattern.PlaceHolder;~System.LayoutPattern.PlaceHolder;System.DateModified"
    "ContentViewModeLayoutPatternForSearch"="alpha"
    "ContentViewModeForSearch"="prop:~System.ItemNameDisplay;System.DateModified;~System.ItemFolderPathDisplay"
    @="Folder"
    "EditFlags"=hex:d2,03,00,00
    "FullDetails"="prop:System.PropGroup.Description;System.ItemNameDisplay;System.ItemTypeText;System.Size"
    "NoRecentDocs"=""
    "ThumbnailCutoff"=dword:00000000
    "TileInfo"="prop:System.Title;System.ItemTypeText"
    [HKEY_CLASSES_ROOT\Folder\DefaultIcon]
    @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
      00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\
      65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,33,00,00,00
    [HKEY_CLASSES_ROOT\Folder\shell\explore]
    "MultiSelectModel"="Document"
    "ProgrammaticAccessOnly"=""
    "LaunchExplorerFlags"=dword:00000018
    [HKEY_CLASSES_ROOT\Folder\shell\explore\command]
    "DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"
    [HKEY_CLASSES_ROOT\Folder\shell\open]
    "MultiSelectModel"="Document"
    [HKEY_CLASSES_ROOT\Folder\shell\open\command]
    "DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"
    @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
      00,5c,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,2e,00,65,00,78,00,\
      65,00,00,00
    [HKEY_CLASSES_ROOT\Folder\shell\opennewprocess]
    "MUIVerb"="@shell32.dll,-8518"
    "MultiSelectModel"="Document"
    "Extended"=""
    "LaunchExplorerFlags"=dword:00000003
    "ExplorerHost"="{ceff45ee-c862-41de-aee2-a022c81eda92}"
    [HKEY_CLASSES_ROOT\Folder\shell\opennewprocess\command]
    "DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"
    [HKEY_CLASSES_ROOT\Folder\shell\opennewwindow]
    "MUIVerb"="@shell32.dll,-8517"
    "MultiSelectModel"="Document"
    "OnlyInBrowserWindow"=""
    "LaunchExplorerFlags"=dword:00000001
    [HKEY_CLASSES_ROOT\Folder\shell\opennewwindow\command]
    "DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"
    [HKEY_CLASSES_ROOT\Folder\ShellEx\ContextMenuHandlers\BriefcaseMenu]
    @="{85BBD920-42A0-1069-A2E4-08002B30309D}"
    [HKEY_CLASSES_ROOT\Folder\ShellEx\ContextMenuHandlers\Library Location]
    @="{3dad6c5d-2167-4cae-9914-f99e41c12cfa}"
    [HKEY_CLASSES_ROOT\Folder\ShellEx\ContextMenuHandlers\Offline Files]
    @="{474C98EE-CF3D-41f5-80E3-4AAB0AB04301}"
    [HKEY_CLASSES_ROOT\Folder\ShellEx\DragDropHandlers\{BD472F60-27FA-11cf-B8B4-444553540000}]
    @=""
    [HKEY_CLASSES_ROOT\Folder\ShellEx\PropertySheetHandlers\BriefcasePage]
    @="{85BBD920-42A0-1069-A2E4-08002B30309D}"
    [HKEY_CLASSES_ROOT\Folder\ShellEx\PropertySheetHandlers\Offline Files]
    @="{7EFA68C6-086B-43e1-A2D2-55A113531240}"
    [-HKEY_CLASSES_ROOT\Folder\ShellNew]
    [HKEY_CLASSES_ROOT\Folder\ShellNew]
    "Directory"=""
    "IconPath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
      74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
      00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,33,00,\
      00,00
    "ItemName"="@shell32.dll,-30396"
    "MenuText"="@shell32.dll,-30317"
    "NonLFNFileSpec"="@shell32.dll,-30319"
    [HKEY_CLASSES_ROOT\Folder\ShellNew\Config]
    "AllDrives"=""
    "IsFolder"=""
    "NoExtension"=""
    ==================
    Once done, right-click the REG file and choose Merge. Alternately, you can open the Registry Editor and then using the
    Import option from the File menu, to merge the REG file contents.
    Let me know if you need any further help.
    Best regards
    Michael Shao
    TechNet Community Support

  • If I have a program that runs in windows under the command prompt and on Mac in the Terminal window, can it be run in iOS

    I have a program that is ran using the command line in windows and the terminal window on Mac or LInux.  Is it possible to create an app for the iPad that could run this program.  This program does require admin rights.

    No.

  • Oracle 9i R2 Installation on RH Linux 7.3 -- Have a few questions.

    Hello,
    I am at the end of the Oracle 9i R2 installation and have a few questions.
    1) The "Agent Configuration Assistant" keeps failing. I get the following message.
    Parameters "orahome" = /opt/oracle/product/9.2.0
    Parameters "nodeinfo" = NODE_VALUE
    Agent Service Failed
    What does this mean and how can I complete Agent Configuration Assistant install?
    2) I completed the Oracle Database Configuration Assistant successfully and created passwords for sys and sysoper (not sure if these were the exact users). Note I did not modify any other users or unlock them.
    How do I log into the sqlplus prompt, what users should I use and how can I create new users and databases?
    Thanks for your help in advance.
    Regards,
    Chris Barone
    [email protected]

    (1) You can probably just ignore the Agent Configuration (are you using the Agent to collect data?)
    (2) sqlplus '/ as sysdba' will log you into the SQL*Plus prompt.
    Rob

  • Every time I update or repair in the control panel it comes up with a error message like, this file does not have a program associated with it for performing this action, please install a program if it is installed create an association to the default pro

    EVERYTIME I UPDATE SOFTWARE OR GO INTO THE CONTROL PANEL TO ITUNES TO REPAIR OR CHANGE IT GIVES ME AN ERROR MESSAGE
    THIS FILE DOES NOT HAVE A PROGRAM ASSOCIATED WITH IT FOR PERFORMING THIS ACTION. PLEASE INSTALL A PROGRAM, IF IT IS INSTALLED CREATE AN ASSOCIATION TO THE DEFAULT PROGRAMS CONTROL PANEL

    STOP SHOUTING!  Or at the very least, get the CAPS lock key fixed.
    Remove iTunes.
    Download and install the current version of iTunes from http://www.apple.com/itunes/download

Maybe you are looking for