Binary to hexadecimal converter

  • 9
  • Locked
The public static toHex(String) method must convert the string representation of a binary number, received as an input parameter, from the binary numeral system to hexadecimal and return its string representation. And conversely, the public static toBinary(String) method converts from the string rep
You can't complete this task, because you're not signed in.
Comments (4)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Jonaskinny Java Developer at Sandmedia
22 February 2022, 17:39
I found taking this tutorial really cemented regex, using both Pattern and Matcher from java.util.regex as well as String methods that perform the same/similar functions. https://docs.oracle.com/javase/tutorial/essential/regex/index.html
Sivanag
Level 12 , Hyderabad, India
28 October 2021, 12:32
Output is corrct.but task failed
Maven
Level 17 , United States of America, USA
17 March 2022, 05:58
That's what I'm saying. Why is the task failing?
Roman
Level 41
28 March 2022, 06:25
Please post your question with the attached solution in the section Help.