This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

Steve Pickle

Greenhorn
+ Follow
since Jun 27, 2016
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Steve Pickle

Thanks Campbell,

I have not passed any Java exam.Simply I can say, I am fresher and need to prepare for Java 8 exam.
8 months ago
Hi Team,

Going though  Java 8  code books.

I need guidance on which  Java certification should I need to go through.

Also suggest on free reference book for certification,  Free  Mock exam URLs.

Thanks,
8 months ago
Hi Team,

I have one classFrom Another class

Below is logic to print in dos command prompt and in output fileIt looks like, on dos promt, out put is getting perfectly line by line next line, but in out file only last line is written. Can you please let me know what to change to get proper output in out file.

4 years ago
Where to change the code to get rid of error.
4 years ago
Hi,

I am have piece of code which convert Hex value 16 character  to binary.
---------------------------------------------------------------------------------------------------------
76     String unpaddedBinary = new BigInteger("1" + hex,16).toString(2).substring(1);
77    String paddedBinary = String.format("%064s", Integer.parseInt(unpaddedBinary, 2));
78    System.out.println(paddedBinary);

---------------------------------------------------------------------------------------------------------

hex value 7024058020C01801

Getting below error at run time at line 77. How to get rid of it, its giving me correct out put.

Exception in thread "main" java.lang.NumberFormatException: For input string: "0
111000000100100000001011000000000100000110000000001100000000000"
       at java.lang.NumberFormatException.forInputString(Unknown Source)
       at java.lang.Integer.parseInt(Unknown Source)
       at DecodeAudit.main(DecodeHex.java:77)


4 years ago