Quick dumb questions..

Hi.. i was just wondering about how to output dollar amounts that have thousands serperators. Thanks.

import java.text.*;
import java.util.Locale;
public class PrintNum {
  public static void main(String args[]) {
    // Amount to be formatted
    double amount = 400000.00;
    // Returns an object of type NumberFormat
    NumberFormat nf =
       NumberFormat.getCurrencyInstance(Locale.US);
    // Calls the format method on the NumberFormat object
    // to format the amount as desired and prints the
    // results to the screen
     System.out.println("He paid " +  nf.format(amount)
                           + " for the house.");
Results in:
He paid $400,000.00 for the house.

Similar Messages

  • 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. 

  • Quick Dumb Question

    I"m assuming when you upgrade from final cut express to final cut pro all your files and everything from express goes into final cut pro?? Correct? Also, what about imovie? Can you still import those files into final cut pro like you can with final cut express?

    http://discussions.apple.com/thread.jspa?messageID=4637952&#4637952

  • NSLog - Quick Dumb Question

    OK, where does the output appear when putting NSLog statements in your code? I can't find it.
    I've put code in like NSLog(@"Got here") and enumeration of dictionaries but nothing ever shows up in the Simulator/Debug Debugger Console. Isn't that where it's supposed to be?

    The Xcode Console window only shows messages from NSLog when running from the device (I never knew that) and is not much help when running the Simulator (and that's what I was using).
    The Console.app does get the output from the Simulator but is congested with all the garbage collection crap from the system.
    I guess I'll learn to debug more from the device. Thanks.

  • One quick dumb question on BM3.9sp1

    I have running on nw65sp7 edir 8.7.9.
    Want to patch all servers, which are all the same as above, with nw65sp8.
    Prior to want to upgrade to edir 8.8 on all boxes including BM.
    I believe BM3.9sp1 is supported on edir 8.8, correct?
    Any other gotcha's with this arrangement?
    Thanks all!

    I should have been more informative, I saw that tid, references 8.8sp3.
    I believe it should be supported under 8.8sp4? right?
    Originally Posted by Mysterious
    shesser wrote:
    > I have running on nw65sp7 edir 8.7.9.
    >
    > Want to patch all servers, which are all the same as above, with
    > nw65sp8.
    > Prior to want to upgrade to edir 8.8 on all boxes including BM.
    >
    > I believe BM3.9sp1 is supported on edir 8.8, correct?
    >
    > Any other gotcha's with this arrangement?
    >
    > Thanks all!
    >
    >
    tid 3171434

  • Quick dumb question - Pre-running CC Particle World?

    In Particular, you can pre-run your simulation so particles are born before time 00:00.   Is there a way to do this in Particle World? I seem to be missing it.

    Pre-Comp the CC Particle World layer, then nudge it in time?
    Of course, you loose the "camera awareness". You could have it by linking a camera inside the Pre-Comp with the main camera outside.
    I am not aware of a built-in method.

  • 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.

  • Two dumba$$ questions

    Sorry, I know these are two really stupid questions, but I know nothing at all. I've just bought a new iBook after ahving a really ancient Mac. Both my questions are to do with Garageband...so here goes...
    Question 1
    What other equipment do I need to be able to record real instruments (string quartet)?
    Question 2
    I was just having some fun the other night, making up some stuff and trying to familiarize myself with the whole Garageband thing (which I love already).
    As I was adding loops I had the sneaking suspicion that some where starting to go missing - why was there an 'Acoustic Noodling' numbers 2, 3, 4 etc but no number 1? Where were 'Asian Gamelan' 3 and 4?
    Chose not to save anything I'd done so far and after did a quick search in the Garageband loops search bit, but nothing came up. Went through the installation disk thinking it would put back anything that had gone missing. Still nothing. Did a spotlight search and a few of the items I thought had gone missing were in iTunes.
    Maybe they were never in the Garageband loops samples first place? Is this possible? Is there somewhere that lists what loops come with Garageband? I'm starting to doubt my own sanity, especially since I went through the installation disk...
    I now have the following samples on my desktop - ones which I thought had gone AWOL:
    Acoustic Noodling 1; Asian Gamelan 3 and 4;
    Middle Eastern Oud 3 and 4.
    I have tried to drag them into the Garageband loops section, but they seem to disappear into the iTunes...I have no idea what's going on...
    Apologies in advance for these dumb questions.

    For what you need to do your string quartet recording, read HangTime's FAQ to get started:
    http://www.thehangtime.com/gb/gbfaq2.html
    Contrary to what you might think, you probably don't want to record the four members of the quartet separately on their own tracks, each with a mic close to the instrument. String quartets need to play all the parts together at once, to get the best feel and performance.
    You'll probably want to put up a pair of mikes arranged in a stereo pattern, at some distance from the string quartet (a couple of meters at least), in a nice live-sounding room. Mike placement techniques are hard to describe in this kind of forum, but you can find textbooks on the subject with diagrams.
    You'll need a matched pair of better-than-average-quality condenser microphones, and an audio-to-computer interface with better-than-average preamps.

  • 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.

  • 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

  • Using the USB port for an external HD dumb question

    OK. Forgive a possibly really dumb question here...
    My external HD has a USB 2.0 interface and I hooked it up to the USB port using a cable that came with an old USB 1 hub I'm not using right now.
    My dumb question is this: is there such a thing as a USB 2.0 cable? Or are the USB cables all the same?
    Also, how long should it be taking to transfer 12.1 GB of data (about 9,000 photos) from my external HD mounted on the AirMac base station to my MBP? There are still 48 minutes left and it seems an awfully long time for 12.1 GB of data. That's why I was wondering if the cable could be an issue...
    Thanks,
    doug

    I am suspecting now that my HD might really have been a USB 1.0 drive...
    doug

  • Where do i find the reference number for my preorder? and yes i no this is prob a dumb question but i cant find it anywhere......

    Where do i find the reference number for my preorder? and yes i no this is prob a dumb question but i cant find it anywhere......

        Hi droidboy52999,
    Your email won't have the same confirmation number as it was ordered over the phone. You will need the last name used for the order, the location code (this ends in 01) and an order number (five to six digit number). Please keep us posted if you need further assistance with this.
    Thank you,
    MariaC_VZW
    Please follow us on Twitter @VZWSupport

  • 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)

Maybe you are looking for

  • Cannot install Mavericks on my Mac Pro

    Hello, I have a MacPro early 2009 with OSX 10.7.5. I can not install Mountain Lyon or Mavericks. The process starts correctly, the computer restarts and begins installing. After a few minutes, it tells me it can not complete the installation and log

  • Can you disable the spark list component?

    i need to disable the spark list in my application when the user clicks on new story... is that possible?

  • Windows Live Mail - when will be supported?

    Windows 7 is for a while on the market already. PC Suite as well as Ovi do not support Windows Live Mail for synchronization of contacts and calendar (actually contacts can be synchronized on PC Suite). It looks like MS is clear about its PIMs tools

  • System.out.println() Ignored

    I have a open source JDBC driver which has to be enhanced. It is compiled with ant. I tried to code in my new methods for enhancing it and wanted to print the intermediate variables through System.out.println(). This particular line for printing onto

  • How to find updates for Windows Photo Viewer.

    I have been asking and asking this question and got a reply to look at the Windows Updates page. There are no updates for Windows Pictures Viewer, but when I got a picture for which the Windows Picture viewer did not work, I got a message that I need