Do anyone know how to convert a decimal to binary, 1 into 01

do anyone know how to convert a decimal to binary
i wants to convert 1 into 01, but the computer print out 1, it didn't print 0
also 0 it also print only 0, and 3 it print11
so decimal of 3, the computer print correct, but 0 and 1 it print wrong
how can i print 01 if my decimal is 1
int a=1;
System.out.print(Integer.toBinaryString(a));
can anyone help me solve this question
and
you can use java or jsp
if you can use jsp it would be better, if not use java

it's not printing anything 'wrong'.
0 in binary is 0
1 in binary is 1
All it's doing is cutting off leading zeros since they don't change the value.
1 is the same as 01 is the same as 00000001...no difference
Similarly, when you print decimal 3 as 11, it could just as easily say 00000011 and be correct, since the zeros don't change anything.

Similar Messages

  • Anyone know how to convert a 3D sphere .STL file into a .igs file?

    Anyone know how to convert a 3D sphere .STL file into a .igs file?

    And for what? Why? This would be kinda atrocious and awful, but weird things happen...
    Mylenium

  • Does anyone know how to convert an XML file to a readable file?

    All,
    I have been using an APP called "SMS Backup & Restore" to backup my message conversations to my Laptop PC.  It works fine BUT the backup file, once in my PC, has an XML extent such as "filename.XML"
    I would like to read and/or print and/or save the text message file so does anyone know how to convert the XML file to something else so it shows all the messages without all the formatting instructions.   
    When I try to see the XML file it shows all the formatting.  If I replace the .XML with .TXT that too shows all the formatting mixed in with the text message narrative.
    When I look at the XML file in SMS Backup & Restore in the Charge phone it looks great showing all the messages just as they were on the phones display.  The problem with this is that there is no way to print or read or save the messages as they appear in the file from the phone itself.  I tried screen capture but if you have, let's say, a 28 message conversation you have to do 7 or 8 screen captures to get them all.
    If only I could convert the XML in my PC to something that is printable or savable or readable that would be the "cats meow."
    Anyone know how???
    JerryF
    PS, You might take a look at my related post.
    https://community.verizonwireless.com/message/809832#809832

    Ann154,
    You were correct again.  I deleted everything I had done to date and re-did the entire SMS backup of my 28 message conversation again and YES I was able to open it using IE-8.  It looks great and it prints great and life is good!  I am going to go make a donation.
    Thanks again for the help.  I marked this thread as answered by you.
    JerryF

  • Does anyone know how to convert iTunes TV subscription downloads to files that I can put on a backup drive and watch on my TV vs. MacBook?

    I purchased a TV series from iTunes and downloaded the HD version. I then copied it to a backup drive so I could plug it in to my DVD player to watch. This would not work. Does anyone know how to convert the files so they are watchable on TV rather than on my MacBook?

    Video in the new iOS is under the application Videos. You should be able to find things there.

  • Does anyone know how to convert the output from the standard report to xml?

    Does anyone know how to convert the output from the standard SAP report to xml?

    since it a standard report which you cannot modify you can only do the following.
    submit report exporting list to memory
    then
    list from memory and then
    use the returned itab along with CALL TRNSFORMATION key word to convert to xml.
    but this only going to place the whole list content (including data and formating lines,etc) into a xml element and not the actual data alone in the list .

  • Anyone know how to convert audio to mini flies in garageband?

    anyone know how to convert audio to mini flies in garageband?

    same as your last post, what is a "mini" file?

  • Does anyone know how to convert a novel manuscript, written in Pages, to an Amazon e-book and CreateSpace document?

    Does anyone know how to convert a novel manuscript, written in Pages, to an Amazon e-book and CreateSpace document?  Do I need to purchase Word for my iBook?

    Susan,
    You need to create a pdf file of the document to print using CreateSpace. Check their size requirements and set up your document to fit those, make sure your cover has the correct bleed if the cover image goes "off the edge", and work your way through the guided system on CreateSpace. If you know someone who has done a book there, they might be able to help you, too. I will be doing a book from an author who used Pages soon, too, and though I use InDesign, he does not. I don't anticipate any problems with it, as a pdf is a file structure with which CreateSpace is familiar.
    You can also use their more tutorial-like set-up, too, perhaps, at least the first time through the process. I typically help first-time users through the process when I've helped create their books, too. It's mostly straight-forward, minus the upload problem I'm currently dealing with with my computer, of course!

  • Does anyone know how to convert file into a .png?

    Does anyone know how to convert file into a .png?
    Thanks

    I tried to give an answer with less steps. I know it's a Pages file & all you have to do is select & copy the content in your Pages file & then open Preview.app. Next time I'll include the exporting to PDF & opening that in Preview.app or in Pages go to File > Print > click on the PDF button in the lower left of the print window & choose Open in Preview.

  • Does anyone know how to convert 3GPP videos to the iPhone 4S?  I have favorite videos I would like to transfer to my new phone.  Any help would be appreciated.  Thank you.

    Does anyone know how to convert 3GPP videos to the iPhone 4S?  I can sync my photos from my computer but not my videos.  Any help would be appreciated.  Thank you.

    Hello,
    This link may be useful to you:
    http://www.iorgsoft.com/iphone-4s/convert-3gp-to-iphone-4s-on-mac.html

  • Anyone know how I can get an audio file imported into my iTunes' podcast directory, rather than the music directory?

    Anyone know how I can get an audio file imported into my iTunes' podcast directory, rather than the music directory?
    I downloaded a series of podcasts recently.  They were imported into my "music" directory instead, making it more difficult for me to recall where I left off with the last podcast I listened to before having to stop it for whatever reason.  Thanks in advance for any help.

    You can do it, though the result isn't ideal. Import your episode, then select it in the Music list and hit command-i to bring up the info panel:
    However each episode you do this with will turn up as a 'podcast' with no name - and it doesn't seem possible to give it one - containing the one episode:

  • DoEs AnYoNe KnOw HoW tO cOnVeRt GrAyScAlE ImAgEs To CoLoUr????

    Hi all,
    I 've got a simple image which has buildings,roads and grass areas. The image is currently in greyscale, and is basically a 400 by 700 text file full of interger values each representing a different land class - i.e. buildings have a value of 200, roads = 100 and grass areas = 60.
    does anyone know how to get the image from a grayscale image to a colour image?
    rob
    x

    argh... got confuse cos your subject.
    I 've got a simple image which has buildings,roads and grass areas. The image is currently in greyscale, and is basically a 400 by 700 text file full of interger values each representing a different land class - i.e. buildings have a value of 200, roads = 100 and grass areas = 60.this is not grayscale image rob. that file is data representation for your map, not color.
    sure you can convert it to color image, but you must define what color convertion do you like.
    DoEs ThIs SuBjEcT rElAtEd tO java?

  • Does anyone know how to convert the .deploy file to ant script

    hi guys ,
    I am doing some work relate to J2EE/ADF application deployment. I need ant script to compile/ear and remote deploy.
    Does anyone know how to generate the ant script based on the .deploy file (eg.ejb.deploy and webservice.deploy ).
    although I can generate the ant script with creating buildfile from project ,but all the ant tasks are just compile ,no other deploy task...
    I much appreciate if anyone can give me a clue
    Kevin

    I don't know how to convert a .deploy file but you may use below commands to remotely deploy an ear file
    To compile
    c:\Oracle\Middleware\jdeveloper\jdev\bin\ojdeploy -profile EarProfile -workspace MyApp\MyApp.jws
    To Deploy
    c:\Oracle\Middleware\wlserver_10.3\server\bin\setWLSEnv.cmd
    java weblogic.Deployer -adminurl http://localhost:7101 -user weblogic -password weblogic1 -deploy -upload MyApp\deploy\EarProfile.earMore Details
    http://edocs.bea.com/wls/docs100/deployment/understanding.html#wp1057841

  • Anyone know how to convert old audio files.

    I have some old audio files going back to OS 7 or OS 9.   There is no file extension.
    Kind:  Unix Executable File
    How can I convert these into something OS X will play.

    That executable file type is just OSX's way of saying it doesn't know what it is.  Unfortunately during the OS7-OS9 days Apple dropped using file extensions. As I transitioned from DOS to Mac in the late 1980s I kept on adding them to all my files because I used several computers and would take a floppy from one to the other and needed to know what kind of files I had on there.  I still have sounds from OS7 days and I know what they are because I added extensions 24 years ago.
    You might see if you can find a resource checking utility.  Resources are hidden file information about creator and type in older files.  I think I have one on this computer but I am running a G4 OSX 10.4.11 and it is Classic capable so I have all kinds of old software here that may not run on a newer computer.
    IT is conceivable VLC might play the file.  It can do all kinds of things but I don't know how good its legacy format support is.

  • Anyone know how to convert h264 .mov files to play in adobe flash player 9?

    Software advice?

    Flash CS3 Professional comes with an utility to convert videos into .FLV. Before that (Macromedia Studio MX 2004, don't know about other versions because I skipped a few) I remember that there was a QT extension that required QT Pro. A quick Google search gave this utility for Windows only.

  • Anyone know how to convert .FLV to iMovie or FinalCut Pro?

    I downloaded a video with file extension .FLV
    I wanted to convert this to either .MOV or .MP4
    Know any apps I can use to do this? I need the video inserted in a Keynote file.
    Thanks!

    Lira Luis wrote:
    I downloaded a video with file extension .FLV I wanted to convert this to either .MOV or .MP4
    Know any apps I can use to do this?
    Give the free tool Mpeg Streamclip a try.
    maybe, you have to install the free Quicktime-plugin from www.perian.org too ...- (relaunch Mac after install).
    Unfortunately, inside that .flv could be any 'crude' mixture of codecs, so there's no guarantee it'll work. if the .flv is coming from YouTube - look, if site offers a .mp4 download.
    and Welcome, Lira Luis, to the  boards ...

Maybe you are looking for

  • ITunes Match and additional users

    I have a 15" Late 2008 MacBook Pro with 8 Gig of RAM and a 256 SSD. I am running 10.8.2 and iTunes 10.7 (21). I subscribed to iTunes Match shortly after it was introduced. About a week or two ago I discovered a serious problem with my iTunes songs. A

  • Best practice of I18N

    I am working on a new development project now where I need to internationalize the application for 30 languages. I am looking for a best practice to do this. I am using Spring , Hibernate and Tapestry frameworks. I tried with the Properties files for

  • When I listen to a song, all I can see is the album artwork!

    Earlier today, I must've pressed something on the iPod to put it into a mode where I can only see the album artwork when I listen to a song - or even worse, if it doesn't have one, it's just a blank square. A while ago I read about some way to put it

  • Reg: P.O Release Strategy Changes

    Hi All, Release strategy is configured for a P.O.The changes in terms of releasing the P.O can be viewed in P.O Screen---Environment - Changes. Do we have any table for checking the changes made to a P.O in terms of Release strategy? Have a Nice Day.

  • I completed an album but it only said that i had purchased one of the songs

    Hello, I had used an iTunes gift card to purchase credit and when I went to complete an album (As the World Bleeds-Theocracy) it did not recognize that I had already about five songs, instead only saying i had purchased one and charged me accordingly