Using numberformatter Please help !!!

Hi I want to use number formatter for following purpose.
If number is 1 million then it should display as 1M if it 1thousand then
it should display as 1K
please help me what pattern i use for the number formatter
Thanks
Apratim

You have to use the ChoiceFormat http://java.sun.com/j2se/1.4.2/docs/api/java/text/ChoiceFormat.html
For how to use it look at the examples of the Class description.

Similar Messages

  • HT1222 I bought used iPhone and on this iPhone I'm not able to make new account  on i Cloud'.  How can I use this iCloud's on used iPhone   Please help me

    I bought used iPhone and on this iPhone I'm not able to make new account  on i Cloud'.  How can I use this iCloud's on used iPhone   Please help me
    When I logging there it told me that maximum no of iCloud's Account already activated on this iPhone.
    Please help me how can I open new iCloud's account on this iPhone
    Regard
    Faiz khan

    Set up the account using a desktop or laptop, then sign
    into that account on your iPhone.
    I am not aware of any method around the restriction once
    the maximum has been created on any individual iPhne.

  • HEY, i have some issue i am using macbook air i5...the problem is that without doing anything 1.5gb of ram out of 2gb always in use ..please help me how to make it normal.

    HEY, i have some issue i am using macbook air i5...the problem is that without doing anything 1.5gb of ram out of 2gb always in use ..please help me how to make it normal....
    and my battery back up is max 3 to 3.5 hours in normal use with web ....is this normal or need some betterment!!!!

    ADEEL UR REHMAN wrote:
    ...the problem is that without doing anything 1.5gb of ram out of 2gb always in use
    No computer can do a thing without using memory. 1.5 GB is very little. It's normal.
    3 or so hours from a full charge may also be normal, for what you are doing. As batteries age, they don't last as long on a full charge as they did when they were new. All batteries eventually wear out, and are easily replaceable.

  • In Siri, I can call by my voice, but why I can not use Siri voice call in my country (Laos), just can call only us phone number; my country we use like 3 number for option call, 8 numbers for call friend but Siri cannot use this please help us, thanks

    In Siri, I can call by my voice, but why I can not use Siri voice call in my country (Laos), just can call only us phone number; my country we use like 3 number for option call, 8 numbers for call friend but Siri cannot use this please help us, thanks
    And please help me can type Laos font in it like andrio phone.

    Hi Cozumel,
    Thanks for posting. I'm sorry you're having problems with your bills. I can take a look at this for you. Drop me an email with your account details and a link to this thread for reference. You'll find the address in my profile.
    Cheers
    David
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • How can i access to iCloud to my iphone because it appear to the screen of my iPhone when i try to access my iCloud that the maximum number of free account have been use already please help me

    how can i access to iCloud to my iphone because it appear to the screen of my iPhone when i try to access my iCloud that the maximum number of free account have been use already please help me

    Welcome to the Apple community.
    Once three iCloud accounts have been created on any iOS device, it can you no longer be used to create any more accounts, regardless of what you do to it. You will need to use a computer or another iOS device to create your account and then use the details to log into your account on your phone.

  • An app counting minutes and data use. Please help!!!

    An app counting minutes and data use. Please help!!!

    Here's one, there are others in the App store:
    http://itunes.apple.com/us/app/data-usage/id386950560?mt=8
    However, since your carrier is the one that bills you, the only stats that matter are your carrier's. Some carrier's offer apps that provide this info, see if yours does.

  • My iPhone 6 ear speaker is not working properly I couldn't able to hear any thing from ear speaker to lissen I had to put on loud speaker or to use handsfree please help me out with this problem if some body have answer?

    My iPhone 6 ear speaker is not working properly I couldn't able to hear any thing from ear speaker to listen I had to put on loud speaker or to use hands free please help me out with this problem if some body have answer?

    Hi Venkata from NZ,
    If you are having an issue with the speaker on your iPhone, I would suggest that you troubleshoot using the steps in this article - 
    If you hear no sound or distorted sound from your iPhone, iPad, or iPod touch speaker - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • How can i choose more than one transition using idvd. please help..

    Hi my name is Luis and I took pictures and wanted to make a slideshow but when i want to choose more than one transition it wont let me. It will only let me choose just one. I would like it so the photo transition was random not just one. Please Help me if someone knows.. Thank You Very Much

    Syncing and backing up in iTunes can be accomplished with multiple devices. They identify the devices based on the phone number, phone name, etc. The only way you would have an issue is if you were using different calendar contacts on the computer. http://support.apple.com/kb/ht1495

  • Jsp database access using odbc - please help

    Hi friends,
    I�m trying a very simple database access program in jsp data base access using odbc. Odbc has to be used because thin driver or other drivers may not be available in every system of our college and as you know it's not that easy to make changes to those systems. My problem is so simple. I always get an exception in my program.
    My jsp content is as simple as:
    <%@ page import="java.lang.*,java.sql.*,java.io.*,registerbean" %>
    <jsp:useBean id="db" class="registerbean" scope="session"/>
    <%
    String str="insert into reg values('" + db.getName() + "','" + db.getUname() + "','" + db.getPass() + "'," + db.getAge() + ",'" + db.getSex() + "','" + db.getAdd() + "','" + db.getUgcourse() + "','" + db.getUgqual() + "'," + db.getPer() + ",'" + db.getIadd() + "')";
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con=DriverManager.getConnection("jdbc:odbc:yogaesh","scott","tiger");
    Statement stmt=con.createStatement();
    stmt.executeUpdate(str);
    }catch(Exception e1){out.println(str);};
    %>
    the table reg has the structure:
    Name Null? Type
    CNAME VARCHAR2(20)
    UNAME VARCHAR2(20)
    CPSWD VARCHAR2(20)
    CONFPASS VARCHAR2(20)
    CAGE NUMBER
    CSEX VARCHAR2(5)
    CADD VARCHAR2(100)
    COURSE NUMBER
    CQUAL VARCHAR2(10)
    CPER NUMBER
    IADD VARCHAR2(100)
    The registerbean.java file is as below: (This seems to work fine because I tried printing the values using <%= %> tag and it worked out fine and moreover the query string is intact.)
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    public class registerbean
    private String name,uname,pass,cpass,age,sex,add,ugcourse,ugqual,per,iadd,otherugqual,ccode;
    public void setName(String a)
    name=a;
    public void setUname(String a)
    uname=a;
    public void setPass(String a)
    pass=a;
    public void setCpass(String a)
    cpass=a;
    public void setAge(String a)
    age=a;
    public void setSex(String a)
    sex=a;
    public void setAdd(String a)
    add=a;
    public void setOtherugqual(String a)
    otherugqual=a;
    public void setCcode(String a)
    ccode=a;
    public void setUgcourse(String a)
    ugcourse=a;
    public void setUgqual(String a)
    ugqual=a;
    public void setPer(String a)
    per=a;
    public void setIadd(String a)
    iadd=a;
    public String getName()
    return(name);
    public String getUname()
    return(uname);
    public String getPass()
    return(pass);
    public String getCpass()
    return(cpass);
    public String getAge()
    return(age);
    public String getCcode()
    return(ccode);
    public String getSex()
    return(sex);
    public String getAdd()
    return(add);
    public String getUgcourse()
    return(ugcourse);
    public String getUgqual()
    return(ugqual);
    public String getPer()
    return(per);
    public String getIadd()
    return(iadd);
    public String getOtherugqual()
    return(otherugqual);
    I initially thought the problem was with str but then str seems to be perfect and I get a string of the form �insert into reg values('c','c','c',98,'Male','c','B.Tech, Applied Artificial Neural Networks','HSC',9898,'h')� which I verified through a javascript debugger. The session scope used is to get values through the db bean from another jsp file. The problem is in the executeUpdate() line of this code. I even tried changing the updation table, but in vain. What could be done to rectify this? Please help me out and please do remember that I have no option but to use odbc.
    Thanks in advance.
    R. Yogaesh.

    I didn't verify the type of exception and i'm now going to do that, but then when the string is as perfect as needed, what is the need for a prepared statement? What is the basic difference between the two? And basically what is the problem with this piece of code which creates an exception? Please reply as soon as possible.
    Thankyou very much.
    R. Yogaesh.

  • In system preferences my search engine and homepage are set for google but my computer keeps using BING, please help!

    I have system preferences > general > homepage and search engine set as google but my computer keeps using BING! Please help!

    You installed the "Genieo/InstallMac" rootkit. The product is a fraud, and the developer knowingly distributes an uninstaller that doesn't work. I suggest the tedious procedure below to disable Genieo. This procedure may leave a few small files behind, but it will permanently deactivate the rootkit (as long as you never reinstall it.)
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data. You must know how to restore from a backup even if the system becomes unbootable. If you don't know how to do that, or if you don't have any backups, stop here and ask for guidance.
    Step 1
    In the Applications folder, there should be an item named "Genieo". Select it and open the Finder Info window. If it shows that the Version is less than 2.0, download and install the current version from the genieo.com website. This may seem paradoxical, since the goal is to remove it, but you'll be saving yourself some trouble as well as the risk of putting the system in an unusable state.
    There should be another application in the same folder named "Uninstall Genieo". After updating Genieo, if necessary, launch "Uninstall Genieo" and follow the prompts to remove the "newspaper-style home page." Restart the computer.
    This step does not completely inactivate Genieo.
    Step 2
    Don't take this step unless you completed Step 1, including the restart, without any error messages. If you couldn't complete Step 1, stop here and ask for instructions.
    Triple-click anywhere in the line below on this page to select it:
    /Library/Frameworks/GenieoExtra.framework
    Right-click or control-click the line and select
    Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.
    If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    A folder should open with an item named "GenieoExtra.framework" selected. Move that item to the Trash. You'll be prompted for your administrator password.
    Move each of these items to the Trash in the same way:
    /Library/LaunchAgents/com.genieo.completer.update.plist
    /Library/LaunchAgents/com.genieo.engine.plist
    /Library/LaunchAgents/com.genieoinnovation.macextension.plist
    /Library/LaunchDaemons/com.genieoinnovation.macextension.client.plist
    /Library/PrivilegedHelperTools/com.genieoinnovation.macextension.client
    /usr/lib/libgenkit.dylib/usr/lib/libgenkitsa.dylib
    /usr/lib/libimckit.dylib
    /usr/lib/libimckitsa.dylib~/Library/Application Support/com.genieoinnovation.Installer~/Library/LaunchAgents/com.genieo.completer.download.plist
    ~/Library/LaunchAgents/com.genieo.completer.update.plist
    If there are other items with a name that includes "Genieo" or "genieo" alongside any of those listed above, move them as well. There's no need to restart after each one. Some of these items will be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    Restart and empty the Trash. Don't try to empty the Trash until you have restarted.
    Step 3
    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including ones called "Genieo" or "Omnibar," and any that have the word "Spigot" or "InstallMac" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    Your web browser(s) should now be working, and you should be able to reset the home page and search engine. If not, stop here and post your results.
    Make sure you don't repeat the mistake that led you to install this software. Chances are you got it from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad has a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If youever download a file that isn't obviously what you expected, delete it immediately.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the Genieo developer has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. It must be said that this failure of oversight is inexcusable and has seriously compromised the value of Gatekeeper and the Developer ID program. You cannot rely on Gatekeeper alone to protect you from harmful software.
    Finally, be forewarned that when Genieo is mentioned on this site, the developer sometimes shows up under the name "Genieo support." If that happens, don't believe anything he says, but feel free to tell him what you think of his scam.

  • Query Using Joins.Please Help

    Hi,
    A Query please
    I have a Customer table and an Order Table
    The customer can place multiple orders
    Create Table Customers
    (Cust_id      number(2),
    cust_name    varchar2(15),
    constraint   pk_custid PRIMARY KEY(Cust_id)
    Create Table Orders
    (Order_no    number(2),
    Cust_id     number(2),
    order_status varchar2(1),
    constraint  pk_orderno PRIMARY KEY(order_no),
    constraint  fk_custid  FOREIGN KEY(cust_id)
    REFERENCES  Customers(cust_id)
    )Now,the Customer table has a single record
    whereas the Order Table has multiple records
    for the same customer.
    SQL> Select * from Orders
    ORDER_NO   CUST_ID ORDER_STATUS
            1         1 P
            2         1 PI'd like to view the different orders for that same customer
    Using a simple Join DOES NOT give the right output:
    SQL> Select C.cust_id,C.cust_name,
      2  O.order_no,O.order_status
      3  From Customers C,Orders O
      4  where C.cust_id = O.order_no;
      CUST_ID CUST_NAME        ORDER_NO O
            1 ABCD              1       PThere are 2 records in the Orders Table?
    How to view both the records from Orders Table?
    Do I need to use the EXISTS clause?
    Can someone please help?

    Well, I would have thought that you would join C.cust_id with the O.cust_id (and not O.order_no)???
    SQL> Select C.cust_id,C.cust_name,
      2  O.order_no,O.order_status
      3  From Customers C,Orders O
      4  where C.cust_id = O.order_no;

  • Lost everything from iWork by using iCloud, please help

    I have an iPad with Pages, Keynote, and Numbers, I have been doing my work on them for about one year.
    Everything was fine until I bought a MacBook Air, I made a new apple id acount so that I could share my work, that I have on my iPad, to my computer and to be able to use iCloud.
    My MacBook Air has some pieces of work that I have done recently, and is useing a Apple Account (lets call it "account 1").
    Today I went on my ipad and deleted the apple id account I had it registered to. A window showed up asking if I wanted to delet the work I had on the iPad, or I wanted to keep it on the iPad, so I chose to keep all my work from Pages, Keynote, Numbers, pictures... ect on my iPad.
    Then, still on the iCloud section of setting, I registered the iPad to "account 1"  the one already registered to my Mac.
    Then, I opened Pages on my iPad and saw all my work just disappear, then I opened Keynote and saw the same thing happen, finaly, I opened Numbers and saw the same thing happen again.
    I have cheked my Contacts and Photos (on my iPad) and they are still there.
    Now that I open iCloud (using safari) on my Mac (registered with "account 1") I cant find all my work from my iPad, it tells me that I dont have Pages instaled (when i already had bought it), so i bought it again (thinking that Apple would know that there is a mistake) but it just used my money to buy it again. After getting it downloaded, iCloud still doesnt show any of all my work.
    Can someone please help me, it is urgent and I would apreciate it.
    Thank you in advance.

    Just keep in mind that using the device as you are runs the risks of losing all contacts.
    If the device is ever lost, stolen, or simply fails, without having contacts synced to a supported app or a cloud service will result in losing the contacts.
    Outlook is not the only supported app.  This article explains the supported apps and provides links to how to set up syncing.

  • My iPod iTunes thing is be a pain in the you know what and won't let download anything cause my account verified thing keeps popping up and I put my security code in but it won't work and I have my iTunes redeem card and it wo t let me use it.please help

    My iPod iTunes thing is be a pain in the you know what and won't let download anything cause my account verified thing keeps popping up and I put my security code in but it won't work and I have my iTunes redeem card and it wo t let me use it.please help

    Maybe heresince yu proviced little informatin about what security code yu are talking about.
    iTunes Store: My credit card's security code or zip code does not match my bank's records
    Contact iTunes:
    Apple - Support - iTunes - Contact Us

  • I'm having a weird issue with my 3Gs using WIFI, please help me!

    Everything was fine before today, and suddently I can't access internet via WIFI. The weird thing is that when I turn Wi-Fi off and back on, the iPhone can access internet for like 30 secs, and it goes dark again. I have constantly strong WIFI signal and my computer works fine. I've tried to reset my network settings and everything, it just keep happening.
    Please HELP!

    If no change after resetting network settings on your iPhone and/or after restoring your iPhone with iTunes as a new iPhone or not from your iPhone's backup (wi-fi settings are included with your iPhone's backup and if there is a problem with the settings included with your iPhone's backup, restoring from the backup will also restore the problem), more than likely your iPhone has a hardware failure with the wireless card or with something else.

  • R12 upgrade issue:Not able to login using forms:Please help****urgent

    We have recently upgraded our instance from 11.5.9 to 12.0.4 in Windows 2003 server.
    We are unable to login to forms after upgrade, however we are able access self service responsibilities without any issues.
    We are getting APP-FND-01496 when we access any forms responsibility. We have tried all possible metalink notes with no luck.
    Any help to resolve this issue will be appreciated.

    Duplicate thread ...
    R12 upgrade issue:Not able to login to forms**please help
    Re: R12 upgrade issue:Not able to login to forms**please help

Maybe you are looking for

  • Using home sharing between pc and iphone

    I have enable home sharing and the option does not show up on the right side of itunes. how can i get this to show and also transfer music from my pc to my iphone wirelessly.  Thanks.

  • PDF Error/Doc View

    When I try to open a document on my PDF view i get an error that says: "PDF View has encountered an error.  We apologize for thie inconvenience. Error Message: Render document failed" Why is it doing this and how can I fix it? Also, on the doc view i

  • Change of Author in Distiller

    Hi There, Please can you help me to change my author settings for Distiller. When I create a PDF I get my name showing as the author. Although this can be manually cahnged in the PDF itself using Professional, this is not practical for the amount of

  • I tried to import favourites from ie9 but only a few appeared.tried several times but the same result

    it only imports a few fovourites not all

  • Locked Layer in Photoshop CS4

    Hello, I have a layer in photoshop that refuses to unlock. Doesn't matter how many times I click on the lock, it just keeps telling me it can't edit the layer because it's locked. The file is in RGB and I just don't get it. So frustrating =[[