Is this a dice or is it just Gibberish?

I know this post must appear often, but im working on a school project and wanted to see if this Die i made will work in the boardgame i'm sapposed to create:
import java.util.Random;
public class Die
     private int faceValue;
     private int sides;
     Die die = new Die( );
     public Die( )
           faceValue = 1;
           sides = numberOfSides;
         public int getSides( );
              return sides;
         int numberOfSides;
         public void setSides(int numberOfSides)
             numberOfSides = 6;
         public void rollDie( )
              double random = Math.random( );
              Random generator = new Random( );
                  faceValue = 1 + generator.nextInt(sides);
  }

i appologize for the last post, it was my first,
this is sapposed to be a game die to be use in a board game simulator i am creating. My teacher isnt extremely clear on assignments and i am not sure if this is sapposed to run on its own, (which it doesnt) or if it will just work when i use it for my game board,
once again, thanks for replying and i appologize for the sloppy posting
import java.util.Random;
public class Die
     private int faceValue;
     private int sides;
     Die die = new Die( );
     public Die( )
           faceValue = 1;
           sides = numberOfSides;
         public int getSides( );
              return sides;
         int numberOfSides;
         public void setSides(int numberOfSides)
             numberOfSides = 6;
          public void rollDie( )
              double random = Math.random( );
              Random generator = new Random( );
               faceValue = 1 + generator.nextInt(sides);
  }

Similar Messages

  • I updated from windows xp to windows 7 and can not get into my itunes account.  I get the notice that I am only allowed 5 devices and this isn't a new device just an updated one.  How do I get to my itunes?

    I updated from windows xp to windows 7 and can not get into my itunes account.  I get the notice that I am only allowed 5 devices and this isn't a new device just an updated one.  How do I get to my itunes?

    Take a look at Apple's document for authorizations -> iTunes Store: About authorization and deauthorization.
    You can deauthorize all computers from iTunes. All you have to do is click iTunes Store, click your account name in the upper right corner of iTunes, then deauthorize all.

  • I have two accounts and for both accounts I use the same emails. I cannot verify my email on my main account because of this. Help? Can I just cancel my other account to avoid confusion?

    I have two accounts and for both accounts I use the same email. I cannot verify my email on my main account because of this. Help? Can I just cancel my other account to avoid confusion? I am totally stuck now.

    By the sounds of it you have linked Email Accounts, if so this means that you will both recieve the majority of the same Emails, and if you do and you read them on your account (which is linked with your husbands) then they will appear to read on the both of them because they are linked. With the majority of Email providers these days they're Emails are (simplified) in the cloud you could say, meaning that if you read or delete shared Emails then it will do the same on both accounts rather than just the yours.
    I hope all that made sense, sorry that I couldn't be of anymore assistance.. If you havent already try googling your problem - you may find some answers on there

  • I use my 7th gen ipod on bluetooth and when the battery dies while on bluetooth it wont turn on or charge and the computer doesnt find it.  This is my 2nd nano in just over a month.  The first one had the same problem.  how can i fix this?

    I have the latest ipod nano (7th gen, 16gb) and I use it mostly on bluetooth. When the battery dies during use with the Bluetooth it doesn't take a charge, the battery doesn't turn on and of course the computer doesn't even acknowledge that it's plugged in. This is my second nano in just over a month, the same thing happen with the first one. I just want to know if their is a way to fix this so I don't have to keep sending it in? Or maybe pay the difference to upgrade to a touch?

    If the battery has been completely depleted on the Nano (not really a good idea) then it is going to take 15 to 30 minutes before your computer can see it. Same thing will happen with an iPod Touch.

  • I need to download my Verizon bill. For some reason my account says I'm a "Member" and not the "Manager" or "Owner" so I can't download the bill. I AM THE ONLY PERSON ON THIS ACCOUNT. I AM THE ONLY PERSON WHO HAS EVER BEEN ON THIS ACCOUNT. ONLY ME. JUST M

    I need to download my Verizon bill. For some reason my account says I'm a "Member" and not the "Manager" or "Owner" so I can't download the bill. I AM THE ONLY PERSON ON THIS ACCOUNT. I AM THE ONLY PERSON WHO HAS EVER BEEN ON THIS ACCOUNT. ONLY ME. JUST ME.

    Prepaid accounts don't have Account Owners/Managers, they just have Account Members (and prepaid accounts have less options regarding changes via their My Verizon account as a result).

  • We get error messages when trying to download in-app purchases on the iPad using an iTunes card.This worked on other ipads.  Just not this particular one.

    We get an error message when trying to download in-app purchases on the iPad using an iTunes card. This worked on other ipads.  Just not this particular one.
    We have tried deleting and re-installing the apps and attempting the in-app purchase again.  Still get error messages. Any suggestions?

    hello Mac.INXS, please [[Clear the cache - Delete temporary Internet files to fix common website issues|clear the cache]] & [[Delete cookies to remove the information websites have stored on your computer|cookies from mozilla.org]] and then try logging into AMO again.

  • Sorry if this has already been asked. Just got the newest i-pad had a bit of difficulty getting the charger in and now nothing not charging. HELP

    Sorry if this has already been asked. Just got the newest i-pad had a bit of difficulty getting the charger in and now nothing not charging. HELP

    The quickest way (and really the only way) to charge your iPad is with the included 10W or 12W USB Power Adapter. iPad will also charge, although more slowly, when attached to a computer with a high-power USB port (many recent Mac computers) or with an iPhone Power Adapter (5W). When attached to a computer via a standard USB port (2.5W, most PCs or older Mac computers) iPad will charge very slowly (but iPad indicates not charging). Make sure your computer is on while charging iPad via USB. If iPad is connected to a computer that’s turned off or is in sleep or standby mode, the iPad battery will continue to drain.
    Apple recommends that once a month you let the iPad fully discharge & then recharge to 100%.
    How to Calibrate Your Mac, iPhone, or iPad Battery
    http://www.macblend.com/how-to-calibrate-your-mac-iphone-or-ipad-battery/
    At this link http://www.tomshardware.com/reviews/galaxy-tab-android-tablet,3014-11.html , tests show that the iPad 2 battery (25 watt-hours) will charge to 90% in 3 hours 1 minute. It will charge to 100% in 4 hours 2 minutes. The new iPad has a larger capacity battery (42 watt-hours), so using the 10W charger will obviously take longer. If you are using your iPad while charging, it will take even longer. It's best to turn your new iPad OFF and charge over night. Also look at The iPad's charging challenge explained http://www.macworld.com/article/1150356/ipadcharging.html
    Also, if you have a 3rd generation iPad, look at
    Apple: iPad Battery Nothing to Get Charged Up About
    http://allthingsd.com/20120327/apple-ipad-battery-nothing-to-get-charged-up-abou t/
    Apple Explains New iPad's Continued Charging Beyond 100% Battery Level
    http://www.macrumors.com/2012/03/27/apple-explains-new-ipads-continued-charging- beyond-100-battery-level/
    New iPad Takes Much Longer to Charge Than iPad 2
    http://www.iphonehacks.com/2012/03/new-ipad-takes-much-longer-to-charge-than-ipa d-2.html
    Apple Batteries - iPad http://www.apple.com/batteries/ipad.html
    Extend iPad Battery Life (Look at pjl123 comment)
    https://discussions.apple.com/thread/3921324?tstart=30
    New iPad Slow to Recharge, Barely Charges During Use
    http://www.pcworld.com/article/252326/new_ipad_slow_to_recharge_barely_charges_d uring_use.html
    Tips About Charging for New iPad 3
    http://goodscool-electronics.blogspot.com/2012/04/tips-about-charging-for-new-ip ad-3.html
    How to Save and Prolong the battery life of your new ipad
    https://discussions.apple.com/thread/4480944?tstart=0
    Prolong battery lifespan for iPad / iPad 2 / iPad 3: charging tips
    http://thehowto.wikidot.com/prolong-battery-lifespan-for-ipad
    iPhone, iPod, Using the iPad Charger
    http://support.apple.com/kb/HT4327
    Install and use Battery Doctor HD
    http://itunes.apple.com/tw/app/battery-doctor-hd/id459702901?mt=8
    To Extend a Device’s Battery Life, Get to Know It Better
    http://tinyurl.com/b67c7xz
    iPad Battery Replacement
    http://www.apple.com/batteries/replacements.html
    In rare instances when using the Camera Connection Kit, you may notice that iPad does not charge after using the Camera Connection Kit. Disconnecting and reconnecting the iPad from the charger will resolve this issue.
    ~~~~~~~~~~~~~~
    FYI
    Complete guide to using iOS 6
    http://howto.cnet.com/ios-6-complete-guide/
    Guide to Built-In Apps on iOS
    https://sites.google.com/site/appleclubfhs/support/advice-and-articles/guide-to- built-in-apps-ios
    You can download a complete iOS 5 iPad User Guide and iOS 6 iPad User Guide here: http://support.apple.com/manuals/ipad/
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Apple iPad Guided Tours - Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    http://www.youtube.com/watch?v=YT2bD0-OqBM
    http://www.youtube.com/watch?v=ROY4tLyNlsg&feature=relmfu
    http://www.youtube.com/watch?v=QSPXXhmwYf4&feature=relmfu
    How to - Articles & User Guides & Tutorials
    http://www.iphone-mac.com/index.php/Index/howto/id/4/type/select
    iPad How-Tos  http://ipod.about.com/lr/ipad_how-tos/903396/1/
    You can download this guide to your iPad.
    iPad User Guide for iOS 5
    http://itunes.apple.com/us/book/ipad-user-guide-for-ios-5/id470308101?mt=11
     Cheers, Tom

  • This may seem basic, but I just discovered that I do not have a share button (the thing with the little arrow popping out) to the left of my address bar on my Mac.  I do have one on my IPad and really like it.  Why don't I have this on my Mac?

    This may seem basic, but I just discovered that I do not have a share button (the one with the little arrow jumping out) to the left of my address bar on Safari for my Mac.  I do have one on my IPad and use it often.  Can anyone tell me why my Mac is missing this icon and how to get it?  Thanks.

    lawrencefromgettysburg wrote:
    I went in to do the software update, and learned that my software is up to date.
    Going from Lion to Mountain Lion is considered an upgrade (because it is not free), not an update.
    So yes, given that you have Lion, you are up to date.  But if you can, you might consider going to Mountain Lion for a fee.
    Here's what you need to do the upgrade:
    System requirements for OS X Mountain Lion

  • HT1349 hi ,i just got a Parallels desktop 7 and i try to install it but the cd doesn't start when its inserted.how can i solve this? the macbook pro i just got it few days back so its the last version..thx

    hi ,i just got a Parallels desktop 7 and i try to install it but the cd doesn't start when its inserted.how can i solve this? the macbook pro i just got it few days back so its the last version..thx

    Hi,just now i open it with finder and it started downloading!!!
      Thank you,very new to mac:)

  • In my email all the messages from one person bunch together and I would like to separate them. I have done this before on my iPhone but just recently got an iPad and its doing it on this, so does anyone have any ideas how to fix this issue?

    In my email all the messages from one person bunch together and I would like to separate them. I have done this before on my iPhone but just recently got an iPad and its doing it on this, so does anyone have any ideas how to fix this issue?

    Settings >> Mail, Contacts. Calendars >> Organise by Thread. Switch to OFF to see every individual email in the Inbox.

  • When I try to charge the battery, my i-pad says: "charging off", how can I change this, so my i-pad will just start to charge as before, without any complications?

    When I try to charge the battery, my i-pad says: "charging off", how can I change this, so my i-pad will just start to charge as before, without any complications?

    Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...

  • After upgrading to snow leopard my charger works intermittently, could this be a software issue or just a coincidence

    After upgrading to snow leopard my charger works intermittently, could this be a software issue or just a coincidence

    Very likely this is a coincidence. Have you tried resetting your System Management Controller? That would be the best first step for any issue that has to do with power.
    Best of luck.

  • I have cs5 and when I try to download a raw file from my Nikon 810 an error message says this versioln of raw doesn't support this camera model. Yet I just updated cs5 online.

    I have CS5 and when I try to download a raw file from my Nikon 810 I get an error message saying this version of raw doesn't support this camera model. Yet I just updated CS5 online.

    I do not use lightroom and  I have a subscription so I can open all supported RAW formats. You will need DNG file for Your Camera's NEF files for use in Photoshop ACR version.  You can open your NEF files in LR it seems so you could do all your raw conversion with Lightroom and save out Tiff files for processing in Photoshop.   I do use lightroom for I do not need its library.  Lightroom does not support layered files so lightroom is of no value to me.  ACR UI is all I need having a second interface to Adobe Raw Conversion Engine would more annoyance than value to me.

  • Is it necessary to use this. on objects or is it just good practice?

    Is it necessary to use this. on objects or is it just good practice?

    warnerja wrote:
    yawmark wrote:
    Is it necessary to use this. on objects or is it just good practice?It's good practice to use it when it's necessary.
    ~No, it's only necessary to use it when it's necessary.
    It's good practice to use it when it's good practice.<****/>
    <****/>
    <****/>
    (the sound of one hand, clapping)

  • Sometimes, for no apparent reason, I lose a note in my notes application. This sometimes happens when I have just opened it, or when next time I open my ipad, it just isn't there anymore. Can it only be retrieved before iCloud backs up automatically?

    Sometimes, for no apparent reason, I lose a note in my notes application. This happens when I either have just opened a notes page or when next time I open my ipad, a note just isn't there anymore. It does seem to occur randomly i.e. independent of note size or age. Very annoying. I guess it can only be retrieved from iCloud before the next automatic back-up? Does anyone know why this happens and what can be done about it to prevent it in future? Is there a limit to how many note pages this app can store (presently I have about 70). I have started to email every note I make on my iPad to myself to be on the safe side. Is the Notes App really so unreliable? Anyone else with the same problem?

    Oddly enough, the size/format of some names can make odd things happen with network Time Machine backups, and at least one of yours may be involved. See #C9 in Time Machine - Troubleshooting (or use the link in *User Tips* at the top of this forum).
    Do your self a favor, though. Even if you get this working, do not depend on these backups 100%. There's a reason Apple doesn't support it -- it's not reliable.
    There are any number of threads here and in the Airport Extreme forum similar to this one: http://discussions.apple.com/thread.jspa?threadID=2483045
    If you still want to do it, see Using Time Machine with an Airport Extreme Air Disk (or use the link in *User Tips* at the top of this forum).

Maybe you are looking for

  • Safari adding .doc to .docx download

    Hi all,     Using a 2010 imac with Yosemite installed. Latest version of Safari. Using latest version of OpenOffice. I need to download some Word docs from a website each week. The Word files end with .docx, but when Safari downloads them, it adds .d

  • JTabbedPane not firing event?

    Hi all, The source of my problem might not the JTabbedPane itself, however. I think I need some expert's advice here. First, I'm coding with IntelliJ. That IDE offers an excellent debugger, and what drives me crazy, is that my problem doesn't occur w

  • AR documents required..

    Hi All, Can anyone provide me the documents for the following: Functional side ar--auto accounting, tables for receipt and transactions, interface tables, auto invoice, customer import, auto lock box, ipayments. Thnx in Advance. Regards,

  • ITunes 100% Plus? Lies....

    What is this??? Doesn't look like iTunes Plus to me....

  • How do I download Premiere CS6 with Encore?

    I am putting together a wedding video and updated all my apps including Premiere to CC and uninstalled Encore, thinking there was a CC version. Well, I need to burn this video to a DVD with a cool menu and had one already created in Encore but can't