Argh! help Dumb question

public void borrow()
borrowed ++1;
I just want to ++1 to the borrowed field when this method is called but when i compile it says im missing the semi-colon at the end of the borrowed ++1 which im not!?

// Four ways to add one to "borrowed"
borrowed++;
++borrowed;
borrowed += 1;
borrowed = borrowed + 1;Be careful with borrowed++ and ++borrowed, as they may not do what you expect when you combine them with other operations in the same line of code. If in doubt, stick to "borrowed = borrowed+1;"

Similar Messages

  • Dumb question re video card

    I bought a radeon 9800 pro graphics card to upgrade my 64mb. stock card and before installing noticed that the new card has one DVI port and one VGA port. the box says it runs dual displays, right now I have dual CRTs running but want to run two flat panels soon.
    so the dumb question, can I convert the VGA to DVI with just a cheap adapter and run dual flats without buying an expensive converter for the second VGA port?

    Hi Prankster,
    you wont be able to get dual digital support from the 9800 ...sorry.
    Of course, you might be able to *physically connect* two digital flat panels to the card but one of the monitor connectors will be recieving an analog video input signal from this graphic card.
    To get true dual digital support from ATI you would need the 9600 or 9700 Pro graphic cards.
    Hope this helps !
    Cheers,
    Chris Chamberlain

  • Two really quick/dumb questions!

    Hi All,
    I have just bought a new Mac Mini and hooked it up to my Samsung 55 inch TV via HDMI and everything seems do be working great.
    My two dumb questions are:
    1: where on the new OS (I had a Mac 5 years ago and things have changed) is the top "Finder" bar and "disc" icon to save files?
    2: In Safari I do not seem to have a tools bar where I can for example open another tab for a new web page.
    Hope you can help a nubby :-)

    You are running a Mini so it might be that the screen resolution is not exact for your display. I have used a Mini with a conventional display but not HDTV. You might need to go into the settings for the TV to set the screen resolution to accommodate the mini's capabilities. Sorry that  I can't offer more on that score; when I use my Sony Bravia HDTV  it is with the iPad2 and HDMI and I have encountered no issues. Perhaps someone else on the forum has better insight into the Menu Bar problem on the Samsung as the principal display. 

  • This is probably a dumb question, but I can't find an answer. How do I make the text on my calendar larger so I can actually read it when I print it out?

    This is probably a dumb question, but I can't find an answer. How do I make the text on my calendar larger so I can actually read it when I print it out? I am using a MacBook.

    Press "Command P" and when the Print dialogue box comes up, towards the bottom there is an option allowing you to choose the text size, i.e: small, med, large.
    Hope this helps,
    NEIL

  • Dumb question but How do you know what generation iPad you have?

    Dumb question but how do you know what generation iPad you have?  I got mine as a gift on Xmas day 2012 but don't know how to find out what version/generation it is.  Can someone help me find that info?  I have looked within settings & elsewhere and I cannot find it.  Thanks in advance!

    Append the last three characters of its serial number to http://www.everymac.com/ultimate-mac-lookup/?search_keywords= and load the page.
    (83797)

  • Really dumb question re Quicktime Pro

    Good morning . .
    My Mac is running OS 10.4.9 and I have updated my Quicktime player to 7.3.1.
    Purchased Quicktime PRO, registered successfully but still only get Quicktime Player when opening the program. Any suggestions where to find QT Pro? Sorry for the dumb question but thanks for your help.
    Jon

    There is no separate QT Pro application. Successfully registering Pro enables Pro features already present in the Player. Items that previosly mentioned Pro should now just list the feature without mentioning Pro.
    Message was edited by: Dick Napoli

  • May be a dumb question...

    Just got the iphone and am excited and FRUSTRATED! I just read through some of the earlier posts about ringtones and a bug in being able to sinc...just successfully resolved or got around that problem.Now my dumb question is...I played a couple of tracks I downloaded but seem unable to stop the track...I can pause it but unable to stop it...please help me.
    Thank GOD for you guys.

    single touch the screen when a song is playing and some extra controls that let you pause/stop a song come up. it also shows a slider so you can drag your finger through a song to skip to the part you want to hear.
    also, depending on how your iphone is configured, try pressing the home button twice (i.e the rounded square button). if you click that twice, quickly, you may see control come up that let you pause/stop a song.
    check out the tutorials movies on the apple support site for lots of useful tips.

  • Dumb question Mac Mail inbox synchronisation

    I'm really sorry if this is a dumb question...I have just started using Mac Mail (from Entourage) with a .Mac account and want to synchronise my messages across my two Macs. I thought that if I deleted messages on one mac, they would be deleted from the server and when I checked mail on the other Mac they would be gone. However, this does not seem to be the case - instead, I need to delete them on both macs. Is something in my setup wrong?
    Thanks for any help

    I haven't....are you saying you think I should? Funnily enough, after never having had a problem before, I had a problem syncing my bookmarks yesterday, so maybe I should resetting the SyncServices.
    Also, on the .Mac preferences - does it matter if the syncing schedule is set to be automatic, every hour, manual etc? Previously I had it set as manual, but maybe I need to set it as automatic?
    Thanks again so much for your help.

  • Dumb question about browser dectection

    I have a web application that looks awesome in IE but in Firefox it looks clunky and blocky. What I need to perform is a validation to see what browser the client is using. I have done this before on simple html pages javascript browser sniffing. Well it seems that I can't for the life of me to be able to get this working in Creator.
    My web project is a Sun Creator Web application. My OS is Windows
    Does anyone have any idea or references that you could supply to me?
    The following code works in an html environment but in a jsp I cant get the different style sheets to work.
    document.write("<link id="link1" rel="stylesheet" type="text/css" href="/WebDemoExtractor/resources/introductionFireFox.css" /> ");
    U jave tried many variations of the following
    document.write("<ui:link binding='#{introduction.link2}' id='link2' url='/resources/introductionFireFox.css'/>")
    I have tried performing many variations with the the above and I have had no success.
    Is it even possible to perform this function??
    Thank you

    jackiepanpan wrote:
    Not a dumb question at all.
    I think you mean how is it possible to view YouTube videos in Safari on iPad, right?
    Basically, YouTube senses the browser you're using. Because Safari on iPad doesn't support Flash, YouTube delivers the movie in a format the iPad can play (like H.264, as a previous post mentioned). This happens with YouTube videos embedded on other web sites, too.
    I hope this helps.
    I was in an Apple Store a few days ago, and a teenage kid really wanted an iPad. His dad said, "but it doesn't play flash, so you won't get to see YouTube videos that you love." Kid said, something expletive deleted.
    The son then picked up the iPad, and he clicked on the YouTube icon. Walked out of the store with it. Sales guy and I laughed. Made my day.

  • Reeeeeeally dumb question

    Total computer-building newbie here. Had a nice guy at the local Fry's help me pick out the parts of a new system, including my swanky K8N mobo.
    So, I've got me my mobo, my tower, couple of hard drives, internal modem, couple of CD/DVD drives, video card, 1394/firewire thingie card. And thanks to earlier help from kind people here, I actually managed to get all this stuff assembled, installed WinXP -- in short, I'm up and running.
    Except I just discovered that I apparently don't have sound.
    SUPER dumb question: Do I need a sound card? Or should what I have give me sound? And if yes to that, which of the three audio plugs do I plug my speakers into?
    (And while I'm at it, how do I figure out which version of BIOS I'm running?)

    The firewire card is leftover from my old machine. I've got two different iPod docks (15GB and 40GB) to plug in, so I do use it.
    As for which mobo I have, here's what the manual has on the front: NVIDIA nForce 3 250Gb Chipset Based, K8N Neo Series. I think there's a regular and a Platinum version of this and I think I've got the regular, because I don't have the various optional items shown in the manual (e.g. I have two SATA connections, not four).
    I just went into the BIOS set-up screen and I didn't notice anything related to sound. Where should I be looking?
    Now, you said I should make sure I've loaded the driver software for my mobo. The last week of computer assembly and software installations has left the old noggin' a bit muddled. I would assume if I've gotten as far as I have (WinXP w/ SP2 and Office installed) that somewhere along the way I would have done this. Wouldn't I have? If not, do I download them from the MSI site? Should they be on a disk I got?
    And if I can re-ask that other question from my original post: How do I know which BIOS I have and that it's updated. In the BIOS set-up, it said this: Phoenix-Award BIOS, W7030NMS V1.3 072804 13:15:30.

  • Weird, Maybe dumb question. My iMovie screen is gone

    This may seem like a dumb question, but it has rendered my iMovie useless. Somehow, my iMovie screen got minimized and I can't see it. et me explain. I open iMovie, the menu bar is there. If I select an opion such as show fonts, or open new project, I get the menu screens for that. However, I don't see the workspace. I have ried playing aound with expose or spaces as it seems iMovie is hidden somewhere,but nothing seems to work to get it back. I tried recovering an older version, but that didn-t work.
    thanks for any help you cn provide.
    ESL

    All I can suggest is the standard troubleshooting steps in order.
    Restart your iPod: Press and hold the Sleep/Wake button for a few seconds until a red slider appears, and then drag the slider. Then press and hold the Sleep/Wake button until the Apple logo appears.
    Reset your iPod: Press and hold both the Sleep/Wake button and the Home button for at least ten seconds, until the Apple logo appears.
    Restore your iPod: Restore: http://support.apple.com/kb/HT1414
    Make an appointment to have an Apple Genius look at your iPod. http://www.apple.com/retail/geniusbar/

  • Where do I enable HTML view for Mozilla Firefox. Sorry if this is a dumb question.

    No answer that I have found online has been any help to me!

    It's not a dumb question, but I have a follow-up: is the problem that Firefox is presenting pages with little or no stylization, looking mostly like text with some random images instead of having their usual layout?
    Does the problem affect secure sites (address starts with HTTPS instead of HTTP)?
    If so, there may be a problem with how Firefox is set up to work with secure sites. Because many popular websites combine content from multiple servers, if you made a security exception for a site, that may not get you all the elements of the page, such as style rules.
    More detail if it's relevant. If this is off track, could you describe the problem in more detail?

  • Probably a really dumb question...but so am I

    Just bought a brand new iMac (specs below). Old one? Panther (3.10.9), 1 GHz, 2 RAM, 80 GB space)
    Keeping the old iMac. A perfectly good machine. Only reason I bought a new one: kind of maxed out regarding my primary use of a computer...home music recording. Just needed more space, power, speed, etc.
    Question: Before I call the phone company (our ISP: ATT), want your advice.
    Can I just hook up two computers (both iMacs, one old, one new), on the same telephone line (a land line...this would be the only phone line coming into the house), and have them work? Or, would the ISP, the telephone company, charge us more for doing this? Meaning operating two computers on the same line simultaneously. (Forget about wireless here. Don't use it, not sure that I will anytime soon.)
    Why couldn't I just plug in the other computer into a phone jack in another room in the house and have it work while the other one, in another room but using the same phone line, is running at the same time? Both simultaneously. (Sure, I'd need a modem for each machine going into the ethernet port.)
    As I said, possibly a dumb question. On the other hand, I'm pretty dumb too.
    Thoughts, advice, suggestions? Greatly appreciated.

    It's probably connecting to a broadband modem (DSL or ADSL). That device allows you to get the high speed internet going on using the same phone jack in your house, and connects to the computer through an ethernet cable.
    "Old school" or dial-up modems are traditionally built into the computer or plug into a USB port, and then use a normal phone cord (same thing other phones in the house use). Aside from being super slow, your line is usually busy and you're unable to make/receive calls when you're online.
    I'm guessing you're connecting to a broadband modem (since you mentioned ethernet cable). With that in mind, the answer is yes, you can hook both those computers up so they can be online at the same time. What you need is what's called a router or switch, and they're not very expensive. One line connects to your broadband modem, then you have 3-4 jacks that you can plug additional computers in (so they can all use the connection at once).
    If you want to have the machines in different rooms but don't want to run wires everywhere, look for a wi-fi router, which will usually give you a few jacks for connecting computers that don't have wi-fi but will also let you do a wireless internet hookup for your new iMac, the old one (if it has wi-fi), and even iPhones if you have 'em.
    Apple has two products that might work for you. The Airport Extreme Base Station has super-fast wifi plus jacks for plugging computers in via ethernet, and even lets you share a printer. http://www.apple.com/airportextreme/ The Time Capsule does all that, and also has a built in hard drive (you can get with a 1TB or 2TB hard drive), which is great for using Time Machine. We've had a Time Capsule since they first came out and love it - super easy to set up, and all the backup stuff just happens without having to worry about it.
    Hope that helps!

  • My ipad mail is synced to my iMac mail account. On iPad, I can only see my inbox and sent messages. I can't see any of the folders I have created on my iMac. How do I do that? Probably a dumb question, but I know there's a lot of smart people out there!

    My iPad mail is synced to my private email account, which I organise on my iMac. On iPad, I can only see inbox and sent messages folders, not any of the other folders in my email account I have created on my iMac. How do I get iPad to show my other folders? Probably a dumb question, but I know there's a lot of smart people out there.

    If you select a mailbox, you should get an Edit button (easier to see in landscape mode). Clicking the button will provide you with check circles for the messages. You also get Delete and Move buttons at the bottom. Check the messages you want to move and then navigate to the mailbox you want to drop them into. I think as long as you can navigate to a mailbox you can move the messages to it.
    In the Mac Mail application and probably Outlook on the Windows side, you also setup rules to move messages to specific mailboxes. If the mailboxes are stored on the server, then you can have the sorting done on the server and they should appear that way on the iPad. If your later messages do not show up, you may need to have the iPad app pulled down more messages until they are all showing.

  • I am looking at buying a MacBook Air over the Pro mainly for the 12 hour battery. Just wondering if battery is compromised by upgrading to 8mb and upgrading to I7 Intel dual core. I am not very tech savvy so apologies if dumb question

    I am looking at buying a MacBook Air over the Pro mainly for the 12 hour battery. Just wondering if battery is compromised by upgrading to 8mb and upgrading to I7 Intel dual core. I am not very tech savvy so apologies if dumb question

    If both computers were configured identically, then they would both lose the same amount of battery life with respect to the same starting configuration - comparing apple to apples. I don't know how much the added RAM, etc. would reduce battery life, but it would be less for both models.
    Battery life is a tricky subject because most mfgr.s like to suggest as long a life as possible, but often do so under a set of conditions that are not common to most users. Apple is no different. Their computers do have good battery life, however. But not likely as long as what is in the ads for the typical user.

Maybe you are looking for