Bin to Hex is KILLING ME, any advice?
public static String fromBinToHex(String binNum)
String hexNum = "";
String a = "1011111011101111";
int n = a.length();
for (int f = 0 ; f < a.length(); f++)
switch (n.charAt(f+4))
case '1010' : hexNum += "A"; break;
return hexNum;
} Thats basically what I got. I'm trying to get this
System.out.println("11100100100110110 Base-2 converts to " + BaseConverter.fromBinToHex("11100100100110110") + " in Base-16.\n");The Bin is basically supposed to spit out "BEEF" in hex form.
Much help is appreciated :)
^ Response
Is it something like this? I did this for the Hex to Bin Converter.
public static String fromHexToBin(String hexNum)
String binNum = "";
for (int k = 0 ; k < hexNum.length(); k++)
switch (hexNum.charAt(k))
case '0' : binNum += "0000"; break;
case '1' : binNum += "0001"; break;
case '2' : binNum += "0010"; break;
case '3' : binNum += "0011"; break;
case '4' : binNum += "0100"; break;
case '5' : binNum += "0101"; break;
case '6' : binNum += "0110"; break;
case '7' : binNum += "0111"; break;
case '8' : binNum += "1000"; break;
case '9' : binNum += "1001"; break;
case 'A' : binNum += "1010"; break;
case 'B' : binNum += "1011"; break;
case 'C' : binNum += "1100"; break;
case 'D' : binNum += "1101"; break;
case 'E' : binNum += "1110"; break;
case 'F' : binNum += "1111"; break;
return binNum;
}
Similar Messages
-
i forgot the answer to my security question which was required by apple to purches an app.. i would appricate any advice on what i should do.
thank you.
Mosab azdeinHi Mva,
If you set up a Rescue email address:
Go into Manage Your AppleID, https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/, select Password and Security, and click the first option (see below), and you will be able to proceed from there..... (I HOPE the first button is showing for you!)
Reset your password
You can change or reset the password for your Apple ID account by providing some information.
Select your authentication method.
Email authentication: To access your information, we will send an email to the rescue email address on file for you.
Answer security questions: To access your information, you will need to answer the security question(s) provided when you originally created your Apple ID.
If you did not set up a Rescue email address:
1. Go to Express Lane and select 'iTunes' from the list of 'products' in the middle of the screen.
Then select 'iTunes Store', and on the next screen select 'Account Management'
Next choose 'Apple ID Account Security' and fill in that you'd like your security
questions/answers reset.
You should get an email reply within about 24 hours (and check your Spam folder as well as your Inbox)
2. Once your questions have been reset, and you set up new ones, also set up a RESCUE EMAIL ADDRESS, so if you forget them again, you won't have to go through all of this.....
Hope this helps!
Cheers,
GB -
i forgot the answer to my security question which was required by apple to purches an app.. i would appricate any advice on what i should do.
Hi Oms3ad,
If you set up a Rescue email address:
Go into Manage Your AppleID, https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/, select Password and Security, and click the first option (see below), and you will be able to proceed from there..... (I HOPE the first button is showing for you!)
Reset your password
You can change or reset the password for your Apple ID account by providing some information.
Select your authentication method.
Email authentication: To access your information, we will send an email to the rescue email address on file for you.
Answer security questions: To access your information, you will need to answer the security question(s) provided when you originally created your Apple ID.
If you did not set up a Rescue email address:
1. Go to Express Lane and select 'iTunes' from the list of 'products' in the middle of the screen.
Then select 'iTunes Store', and on the next screen select 'Account Management'
Next choose 'Forgotten Security Questions' and fill in that you'd like your security
questions/answers reset.
You should get an email reply within about 24 hours (and check your Spam folder as well as your Inbox)
2. Once your questions have been reset, and you set up new ones, also set up a RESCUE EMAIL ADDRESS, so if you forget them again, you won't have to go through all of this..... -
Getting ready for Firmware updates - any advice?
First a big HELLO to all the regulars!
Second - any advice? Firmware updates freak me out (killed an old iBook once)
many thanks!Trisha K wrote:
all seems to have gone well
just a question, my update reads: "MBP51.0074.B01"
but according to KB article HT3260 it is supposed to be:
"MBP51.0074.01B"
did i mess up?
What you have read has been written incorrectly by Apple. You have installed the updates successfully. My MacBook Pro reads the same as yours, MBP51.0074.B01.
Congratulations! -
I have an older 8GB black iPod Touch (no bluetooth) no longer supported by tech. It is "locked" in restore mode. When I do a 2 button reset I can get the Apple logo but then it pops back to the synch cord-and-music disc icon indicative of restore. Any advice?
Hello honeycrisp70,
For that error, check out the article below for additional troubleshooting to get it sorted out. If it continues then you may need to contact Apple support.
Resolve iOS update and restore errors
http://support.apple.com/en-us/TS3694
Check for hardware issues
Related errors: 1, 3, 10, 11, 12, 13, 14, 16, 20, 21, 23, 26, 27, 28, 29, 34, 35, 36, 37, 40, 1000, 1002, 1004, 1011, 1012, 1014, 1667, or 1669.
These errors mean that your device or computer may have a hardware issue that's preventing the update or restore from completing.
Check that your security software and settings aren't preventing your device from communicating with the Apple update server.
Then try to restore your iOS device two more times while connected with a cable, computer, and network you know are good.
Confirm that your security software and settings are allowing communication between your device and update servers.
If you still see the error message when you update or restore, contact Apple support.
Regards,
-Norm G. -
i have recently upgraded to 7.0.2 and can no longer charge my iphone 4 as i recieve the message this accessory may not be supported, any advice would be appreciated
i have also tried 4 different chargers both official apple and non officiali have tried this but still not working i found a way of fixing it by restoring the phone but this has now put my phone in recovery mode and when i try to fix it i get an error 14 which i have no clue what it means
-
I changed the password in my windows live e-mail account. My iphone now recieves but will no longer send e-mails. I have deleted the account from the iPhone - reinstalled it and verified the password is correct. I recieve a message that "Cannot Send Mail" "the user name or password ... is incorrect. Any advice ?
Hello DRB1962
Check to make sure that you validated the device within your account on webmail.
iOS: Setting up Hotmail, Outlook, Live, or MSN email accounts
http://support.apple.com/kb/HT1694
Thanks for using Apple Support Communities.
Regards,
-Norm G. -
After moving to iCloud I can only get my email through the cloud, no new emails are making it to my home computer and .mac account. Does anyone have any advice on how to fix this issue?
Welcome to the Apple Community.
Which OS are you using. -
I have a 5th Gen iPod Touch. It is running the latest iOS, and iTunes has the latest update. I have many compilation albums that I imported from CD. I want the individual artists and their associated song(s) to show up under "Artists." I have turned off "Sort by Album Artist" in Settings. This worked perfectly on my 4th Gen Touch. Each artist from a compilation would show up under "Artists" with the correct song(s) showing, while still showing the whole compilation under "Albums." Now, on my 5th Gen Touch, when I try to look at an artist from a compilation under "Artists," I get one of the following: the correct artist and song, an incorrect artist and song, or an incorrect artist with the entire compilation album showing up. Is this a bug in the new iOS 7, or am I doing something wrong? Anyone else with this problem? Any advice?
I have the same problem and I have been really trying hard to find a solution. No success.
My main problem is this: For example: Top Gun soundtrack - I look at Kenny Loggins under artists and I see his albums and songs, plus the 2 songs from top gun. Then when I look at Miami Sound Machine (also on top gun cd) under artist, I see correct albums from Miami sound machine, but under the top gun soundtrack, it shows the 2 kenny loggins songs instead. then if I look at another artist from top gun cd, it continues to show the kenny loggins songs. It doesn't matter which songs i look at, but the first one i start with will always show up on the others. Funny thing is, if I click on the song, the correct song plays, it just says it is the kenny loggins song!!! ha ha. Been dealing with this for over a year now. Pretty aggravating. Happens whether I have compilations checked or unchecked on settings. I have over 50 compilation albums and some are checked, some aren't...they all behave this way.
On Mac, itunes (v 12) it all shows up correctly and works fine. I have become an expert on ID tags and am very thorough with my tagging. HAND TAGGING, not some program that does it for you...they are never correct. I match all my tag info with the info in the iTunes store for each album so it is sure to match. Has taken a long, long, long time.
Love iTunes match, but this one issue is a real pain. Anyone with any ideas, I'd love to hear them! Thanks! -
I recently had to wipe out my phone and lost everything! I have been able to recover all apps, pics, songs. Lost alot of my contacts due to me not backing up my info to icloud more often. (my mistake) However, I cant find any of my purchased ringtones. They are not showing up in my purchase history on itunes either. I do have the receipts for all of them tho.
Any advice or info would be greatly appreciated!Ringtones are currently a one-time only download, they won't appear under the Purchased tab nor in the cloud. Have you got copies of them in the Tones section of your computer's iTunes library or in the backup of your downloads that you can use to re-sync them to your phone ? If not, and they are still in the store, then you can try contacting iTunes support and see if they will grant you a re-download : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then try selecting Purchases, Billing & Redemption
-
My storage is mostly full of a category labeled "other." I'm out of memory to the extent that it won't even allow me to update apps. I have moved all photos over to my computer and my music streams through the cloud. Any advice on how to fix this problem?
http://discussions.apple.com/thread/3418045?tstart=60
-
I Wish to connect my 6 year old Apple 20" Cinema Display to an orignal MacBook Air which does not have a Fire-Wire port. Is this possible? Any advice would be appreciated. I have the Micro-DVI to DVI adapter. Norm
The FireWire cable is just for the FireWire ports on the display. The display will run without it.
-
Using the mini hdmi cord to connect the macbook air and my tv I cannot seem to have anything appear or be heard on my tv.. the MacBook air will flash blue like it is connecting but nothing will seem to work Any advice?
Hi kxh3011,
Thank you for using Apple Support Communities.
This feature is called closed clamshell mode. To learn more about using closed clamshell mode with an external display and how to set it up, please take a look at the article below.
Mac notebooks: How to use your computer in closed clamshell (display closed) mode with an external display
Cheers,
Alex H. -
hi, i am a littl confused as I logged into creative cloud and bough the in design plan for a year but i cant seem to donwload it... there is a window that pops up and it says its downloading but its taking forever? any advice?
Hi Dima,
Please refer to the help documents below:
Troubleshoot Creative Cloud download and install issues
Error downloading, installing, or updating Creative Cloud applications
Regards,
Sheena -
I have a slew of .MOD files I cannot play from our Canon video cam. I tried renaming the files as MPEG or MOV, I get the message "The document “001.MPEG” could not be opened. A required codec isn't available." Any advice on getting these to play? Thanks!
Try installing Perian or VLC. Some AVIs require a codec which simply isn't available for Mac OS X.
(85018)
Maybe you are looking for
-
Host name benig remove from relative link on some users computers IE 7 or IE8
There are PDF docs stored on a server with and IP as the top level of the URL. i.e https://123.123.12/.... The problem is on certain computer the IP is not displaying when you point on the link and there for the PDF will not display. Some computer
-
Process chain name required for a infopackage
Hi, Is there a table in BW that stores the process chain name and IP's in it. We need to find the names of process chains based on the Info package names. Regards, Adarsh Mhatre
-
I have downloaded multiple purchased (not rented) movies on my computer from the iTunes store and done multiple "syncing" sessions. NONE of my purchased movies are in my iPad. Yes, I checked videos, iTunes and every other app on my iPad but they are
-
Itunes Store not opening after updating Itunes
Hey guys I can't get the itunes store to open, I just updated Itunes and did all the troubleshooting that is reccomended on apple.com to make sure everything is up to date. Any ideas of how to solve it? Thanks
-
Development buttons not working when application running
Hi, I am using Apex 4.1. For a new application that i created the buttons which come in the bottom of page (Edit Page1, Application 1, debug etc) are not clickable. They workked for another app in the same workspace. Any idea what could be the issue