CAN ANYBODY PLEASE HELP ME???

Okay, I'm in this AP Computer Science class where I don't understand ANYTHING and my mom won't take me out of it because she thinks "it will help me in the future"(even though I'm going to be a doctor). So can somebody please help me write a program that simulates a slot machine that outputs three random numbers?? Please and Thank You.

Why are you using the Scanner? I didn't see anything in your reqiurements about reading user input.
I see you imported Random, so you know it exists. Did you read its docs?
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Random.html
If you don't know the basics of writing a program in Java in general, you'll probably want to look at one or more of these.
Sun's basic Java tutorial
Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
Bruce Eckel's Thinking in Java (Available online.)
Joshua Bloch's Effective Java
Bert Bates and Kathy Sierra's Head First Java.
James Gosling's The Java Programming Language. Gosling is
the creator of Java. It doesn't get much more authoratative than this.

Similar Messages

  • HT201210 My iPhone has crashed and i went to iTunes to restore it and after waiting for it to be restored it said "The iPhone could not be restored. An unknown error occurred (2006). Can anybody please help suggest what i should do now?

    My iPhone has crashed and i went to iTunes to restore it and after waiting for it to be restored it said "The iPhone could not be restored. An unknown error occurred (2006). Can anybody please help suggest what i should do now?

    This error normally appears if you attempted to downgrade or modify your iOS. See here http://support.apple.com/kb/TS3694#error1015

  • Trying to change reset my Apple ID as I can't remember it, however it is sending an email which says invalid link or a list with the option to change password which can't be clicked on? Can anybody please help?

    Trying to change reset my Apple ID as I can't remember it, however it is sending an email which says invalid link or a list with the option to change password which can't be clicked on? Can anybody please help? Going around in circles! Grrrrrrrrrrr

    Is this your machine or the company's?  Machines that came with Snow Leopard or earlier installed come with system and software install disks that can be used to reisntall the iApps that came with the machine orignally. 
    If this is your machine and it came with Snow Leopard or earlier installed the disk will look slimialr to one of these:
    If it is the company's machine see if they have the disks.
    Do a custom install and then use Software Update to update iPhoto to the highest version that is available.

  • Can anybody please help me to find out the link where small co.

    can anybody please help me to find out the link where small companies implementing saps.

    Hi,
         SAP is providing a solution to Small Scale Industries with SMB (Small and Midsize Business) Product for various industries. It's a Pre configured SAP Solution pertaining to a specific industry(like Pharma, Oil..etc) with which the implementation as well as the cost will also decreases.
    Regards,
      Jayaram...

  • I am running Yosemite 10.10.2 on my Macbook Pro. In the game center app I can not access my account. Clicking on the username does not help - it looks like it's stuck. Can anybody please help me? Thanks in advance.

    I am running Yosemite 10.10.2 on my Macbook Pro. In the game center app I can not access my account. Clicking on the username does not help - it looks like it's stuck. Can anybody please help me? Thanks in advance.

    Someone in another section answered this. Thanks.

  • Hi, I tried to change my security questions on the internet. But, for some reason, the button to change them is not there! This is annoying as I have recently bought an iTunes voucher and now I cannot buy any new apps. Can anybody please help me!!

    Hi, I tried to change my security questions on the internet. But, for some reason, the button to change them is not there! This is annoying as I have recently bought an iTunes voucher and now I cannot buy any new apps. Can anybody please help me!!

    Security questions:
    https://discussions.apple.com/docs/DOC-4551

  • My CS5 start up splash gets stuck at 'Reading fonts...ABSALOM', can anybody please help

    My CS5 start up splash gets stuck at 'Reading fonts...ABSALOM', can anybody please help

    Fritz,
    You may try the list, especially 4) or 6).
    The following is a general list of things you may try when the issue is not in a specific file (you may have tried/done some of them already); 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save curent artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to 3 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • My iPod has had everything wrong with it! Can anybody please help?PLEASE!!!

    Hey All
    Please help me with my ipod. Ive been trying for so long to get it working( More than 4 Months) but with no luck.
    The problems started when my friend asked me to plug his ipod into my computer to get my songs because his ipod wouldnt load songs from his computer. Well I tried that and it didnt work. Anyway, the next time I tried to update my ipod(which is an ipod mini 4th Gen, i think)it wouldnt update my songs and came up with numerous messages that said something about a corrupt file run chkdsk. Well I looked up what to do and I did run the chkdsk thingy and it said that it fixed a few files so I no longer get those messages. Despite the slight improvement Im still having problems. When my iPod is plugged into my computer it slows the computer right down until iTunes is automatically opened. The ipod then starts to update, but at an incredibly slow rate. It takes it about one hour to update 50 songs. In addition, the ipod gets super, super hot. Now im no computer genius, but i know the USB port that I use with the iPod is a 2.0 thingy so thats not the problem. I have also tried resetting the ipod by pressing the "menu" and "select" buttons on the ipod, as well as restoring it using the ipod updater. I have tried uninstalling and re-installing itunes with no luck and even went back to itunes version 4.0. My ipod has the latest ipod software on it so thats not the problem either. There is one thing I have noticed about my ipod that is rater unusual: the circle (located in the top left-hand corner of the screen) with the arrows on it that rotates when updating keeps flashing on and off in non-regular intervals when updating. Sometimes that little icon wont even appear and its when that icon doesnt appear that the ipod doesnt get recognized by itunes and the computer sees it as a portable storage device and not an ipod.
    I know thats alot of infomation to swallow but does anyone have any ideas what the **** is going on???
    Any suggestions would be greatly appreciated.
    Cheers.
      Windows XP  

    You could try to format the iPod in Windows. It does the same thing as restoring and you would need to restore the iPod as normal (using the iPod updater) afterward. This can work when the iPod is recognized by the computer, but not by the updater.
    First, put the iPod into forced disk mode.
    See: How to put the iPod into disk mode.
    On your PC, go "my computer" and right click on the iPod, then choose "format". Ensure the settings are at "default" and that "quick format" is not checked. Now select "format". When that's finished, restore the iPod using the updater.
    You can also check the iPod's hard drive for errors using Windows ScanDisk.
    Put the iPod into disk mode as previously mentioned. Go to "my computer" and right click on the iPod then select "properties", then "tools". Select the option to scan the disk for any errors.
    To exit forced disk mode, reset the iPod.
    If that doesn't work, then the iPod needs repair. (to be honest, I think it does)

  • IOS 5.1.1 update wrecked my phone, can anybody please help?

    Hi there,
    I plugged in my iPhone 4S into iTunes, and it tells me that there is an update (iOS 5.1.1)
    I click update, it downloads the file and away it goes. I left the computer as this happened, it automatically went to install and when I came back there was an error message. Unfortunately, I don't remember what it said, but what has happened is that the USB cable and iTunes symbol shows on my screen whenever I turn it on (telling me to plug it into my PC). However, iTunes doesn't recognise my phone. Neither does my computer, although it plays the USB sound when I insert/eject my iPhone.
    I called apple support and they were of no use, I've read several articles that involved uninstalling all apple programs and starting a fresh all to still be without a phone.
    I am at my wits end and most definitely need my phone, so I hope that somebody can please help me resolve this issue as soon as possible!

    I know that Apple doesn't read these, that was just a way of trying to say that I see on this and other forums that lots of people are having trouble.  Yes, I tried the restore and also the turning off firewall/anti-virus.  Didn't work.
    I finally fixed the problem and learned a lot in the process, especially in talking to some of the guys at the Apple store near where I live.  So here are my recommendations to anyone with this problem:
    (All this assumes you have a real iPhone/iPad and not a jailbroken one.  If you don't have a legit one, forget about fixing it.  Every software update is designed to cause problems for jailbroken phones).
    First, if you haven't downloaded 5.1.1 yet, and want to avoid the problems, don't do it through iTunes on a Windows machine.  Apple pretty much knows that there are a large number of problems that can occur and they try to help you trouble shoot a lot of them.  But once your install through iTunes on a Windows machine is corrupted, you might have a lot of trouble getting things to work again.  You should download 5.1.1 because of the security upgrades.  If you can download it direclty on your iPhone/iPad that should work without a problem.  If you can connect to WiFi you should, especially if you don't have an unlimited data plan.  If you are on a metered data plan you should never download software updates through your phone connection, only though WiFI or on your iTunes. 
    By all means try the hard reset approach described above.  I did multiple times and it didn't work, but if it can work for you, do it. 
    Here is another way to do it.  If you have another computer available, download iTunes on that computer and connect the device to that computer.  Do a hard reset.  The other computer's iTunes will recognize the device as just an iphone/iPad.  Then wipe the iphone clean and do an install of the updated OS.  (This assumes that you have backed up your iPhone recently to your computer or iCloud. If you haven't or don't, you will lose a lot of your data, photos, etc.)   Wiping the device and installing the new OS will delete everything on your phone.  After this, then connect it back to your first computer, and iTunes should recognize it.  Then restore from your backup. 
    Of course, if you don't want to hassle with any of this just make an appointment at the nearest Apple store and they will fix it for free. They can wipe your phone and then you just restore from a backup. 
    What the original poster described is what happens when his phone enters "recovery mode."  This often becomes very hard to recover from on the same computer which caused the faulty install. 
    Also, if you do try to uninstall and reinstall itunes, make sure you do it exactly in the order described in http://support.apple.com/kb/HT1923  If you don't it won't work. 
    Good luck

  • Can anybody please help me regarding :CAFFindException

    Hi,
    I am new to Composite Applications. Can anybody help me to resolve "CAFFindException" exception.
    Steps i have followed:
    I have desinged the EXTERNAL service with RFC, I have wrapping my external service with ENTITY service in NWDS and deployed it successfully.
    For UI building i have follow below steps:
    1. Open CAF Runtime Configuration page.
    2. select Administration tools.
    3. click on External service configuration
    4. click on Service Resistry.
    5. select the external service i have created and click on open definition and gave logon information and R/3 system information.
    after this when i am trying to test my external service through test tools i got "ERROR. The following exception occured while processing your request: com.sap.caf.rt.exception.CAFFindException" exception.
    Thanks and Regards,
    Suresh.B

    Use
    Settings > General > Restrictions >
         Installing Apps: OFF
        In-App Purchases: OFF
    Note: Don't forget the passcode and don't let the kids know.

  • Can anybody please help? I am facing problem while running app on iPhone via flash builder

    Getting the following error while using ANE file in a test application. Can you please suggest how to launch the app successfully on ios simulator and on ios device?
    Error occurred while packaging the application:
    I have selected iOS simulator and iOS device in run configurations too. ANE builds fine but when integrated with application it is not running. I have also set certificate and profile. I have used the following command to build ane:
    adt -package -target ane Output.ane extension.xml -swc MyLibrary.swc -platform iPhone-ARM -platformoptions platformOptions.xml -C ios . -platform default -C default .
    Its urgent. Please help.

    This is covered in the basics section.
    A restore loses nothing.
    A restore does.  If you are using the iphone as designed, then everything should be on your computer.

  • MSI K8T + AMD 64 Athlon Processor + Corsair 3200, can anybody please help?

    i recently have put together a system as follows...
    MSI K8T Neo Mainboard
    AMD 64 Athlon Processor
    Corsair TWINx1024-3200c2pt
    i experience random system crashes/reboots/lockups and sometimes on restart i get system message from windows xp saying that "this system has recovered from a serious error" and when i click to view the details of this error.. this is what follow..
    C:\WINDOWS\Minidump\Mini123103-03.dmp
    C:\DOCUME~1\robby\LOCALS~1\Temp\WER1.tmp.dir00\sysdata.xml
    **windowsusername
    i was wondering if anybody else has had any problems with this or perhaps if any of you know what could possibly be causing this.
    i have all the latest BIOS drviers, Motherboard drivers, and amd chipset drivers.
    can anybody help me with this?
    thank you.

    ok heres what i know i have corsair 3200 value select with the same system MSI K8T athlon 64 3200
    k just like 6 days ago i took out my motherboard and put in the rest of the motherboard risers the one by the ram had a plastic one in it and i put in all brass ones or whatever they are, and it started to bomb the  on me drivers not installing correctly and stuff like what you guys are saying so i just took them back out last night and im gonna reinstall windows again to see if it helps( i reinstalled windows XP pro 5 times yesterday by the way trying to make my Radeon 9800XT work properly with the drivers and have 8x and fast write enabled cause that was messing up also) and i finally got it to where i could install most the drivers but 2 of my hard drives are missing so thats why im reinstalling, windows wont allow me to install the driver in any way so it might be somthing with the risers on the board
    it was fine when it was missing the 3 on the end where the ide plugs are and i have my ram in slots 0 and 2 but that didnt seem to matter
    so thats just my experience to right now

  • Lightroom 5.2 won't open after "successfully installed" - can anybody please help me understand why?

    Hi everyone
    I've bought and downloaded Adobe Lightroom 5 for a new iMac 27" intel core 5 3,4 GHz. The machine is only three days old and no more updates are to be found when searching for it. However; after the message that "lightroom 5 has successfully been installed" I don't get to open the program. So I never get to the point where I can register the serial number / registration key for purchased product.
    I've followed the instructions that comes with Lightroom 5, but no luck. Also tried to uninstall and reinstall.
    No secret that I'm total incompetent when it comes to understanding of computers and software....
    Hope someone can help me understand what I'm doing wrong, and sugest some good solutions :-)
    Thx

    I think you may need to uninstall and then start over. There is no installer on the Mac for Lightroom so select it in Applications and send it to the trash.  I suggest you download again from a different source. You can use the link below to download the free trial and then validate the software after installation with your product serial number. Ensure you choose your language version and MAC platform from the dropdown list at the top of the page.
    After you click download it starts by downloading or updating (replace) the Adobe Download Assistant. You then browse the products and select Photoshop Lightroom 5 to start the installation.
    https://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_lightroom&promoid&promoid=D TEML

  • Can anybody please help me with an Elements 10 problem?

    I have been using Elements for several years now. Progressing from 5 to 7 then onto 10 without any problems of this type.
    The original start up screen showed the first few thumbnails of all the photo's in the catalogue from where I could scroll down in date order.
    to see anything that I wanted to in the catalogue.
    Recently for some reason that I don't understand, on start up, there is a screen on the Left hand side of which there is a listing of most of the Folders that I have on my PC and the photographs that I have in elements displayed.  This listing includes Desk top, My Documents, Microsoft answer desk,My Dropbox, My Music, My Pictures, etc,etc. Some of the folders have photo's in them, but most do not.
    On the Right hand sde of the screen my photographic fiolders are listed and these can be opened in the normal way.There is a blank space in the middle of the screen into which the photo's can be opened out.
    Thanking you in anticipation
    Best regards
    Ron.

    Hi again Trevor,
    I've opened the link that you gave and found that my question is already there.
    Perhaps you already transfered it for me. If you did then thank you again.
    Now I can only hope that I get some helpful replies.
    Regards

  • I updated to Firefox 4, and there is a "notification" that says: FIREFOX IS NOT ABLE TO SHOW THE TOOLBAR. PLEASE RE-INSTALL THE TOOLBAR. Where do I go to "re-install" the toolbar, Can anybody please help me? Thx. Driekie de Beer.

    How does FIREFOX-TOOLBAR looks like,and where on my page will I see it? I have a lot of toolbars on my page, like, the ZYNGA-toolbar,facemoods, ect..... Before I downloaded the "new version of firefox 4, I had the version 3.16, and had NO trouble at all!

    I would imagine it's the MyWay Searchbar which is classified by most anti-malware scanners as adware, or even worse as spyware. I say that because I see "SmileyCentral" in your list of plugins and that's an add-on for that particular toolbar. You can disable that via Tools | Add-ons | Plugins.
    There are a number of toolbars which won't work with Firefox 4 anymore due to the enhanced protection mechanisms in the browser.
    Mozilla recommends that you only install add-ons from its own security site @ https://addons.mozilla.org/en-US/firefox/?browse=featured Generally speaking, those have all been tested and approved. The exceptions are those currently under review which are marked with a yellow banner to warn users that they haven't passed Mozilla's labs yet.

Maybe you are looking for

  • Restore Macbook Pro running 10.7.5 to factory default?

    Hi there, I know there are already a few threads asking this but I would just like to clarify something before I go ahead. The answers on other threads say to open disk utility and then erase the HDD and "install OS X", for machines that didn't come

  • Howto change property of javabeans based data control?

    Hi, I have a swing application which displays a combobox. This combobox is bound to a javabeans based model using ADF. The combobox is enabled/disabled based on a value in another combobox, so sometimes the combobox is enabled, sometimes it's not. We

  • BI info. related to enhancement pack.

    We are undergoing a enhancement from SAP 6 pack 0 to SAP 6.0 pack 6. Post enhancement  BI will be at 7.0 pack 31, currently 7.0 pack 0 The client has asked for additional BI functionality that is available as a result of this enhancement. I have trie

  • Document attaching to Customer Object link

    Hi all, I have created a document relevant for Sales. In object links i have attached this document to Customer object. Here in the Customer master data (After double clicking the Customer object link in the DIR), Can i attach any document to the Cus

  • Full hard drive panic

    I have PB 15" 1Ghz, Power PC G4, 1GB RAM, mac 10.5.6, 60 GB drive. I have run out of space. I want to update ILife 09. I do use Itunes with a lot of music and have a lot of photos but no space left. I have 55 of 60 GB in use. I took unit into Apple s