Blog: mkyong (Yong Mook Kim)


212 blogs updated: 141 min. ago
Java Password Hashing with Argon2
Argon2 was the winner of the Password Hashing Competition in July 2015, a one-way hashing function that is intentionally resource (CPU, memo...
14
19-06-2020 11:31:31 mkyong (Yong Mook Kim) Beginners
How to Pretty Print JSON output in cURL
In cURL requests, the default JSON output is in compact format. Terminal curl {"success":false,"errors" :[{"code":7000,"message": "No route ...
3
16-06-2020 14:22:04 mkyong (Yong Mook Kim) Beginners
Java - Convert String to Binary
This article shows you five examples to convert a string into a binary string representative or vice verse. Convert String to Binary Integer...
3
09-06-2020 09:38:26 mkyong (Yong Mook Kim) Beginners
Java - Convert an Integer to a binary string
In Java, we can use Integer.toBinaryString(in t) to convert an Integer to a binary string representative. Integer.java public final class In...
3
07-06-2020 09:16:08 mkyong (Yong Mook Kim) Beginners
How to reverse a string in Java
In this article, we will show you a few ways to reverse a String in Java. StringBuilder(str).revers e() char[] looping and value swapping. b...
0
04-06-2020 12:41:01 mkyong (Yong Mook Kim) Beginners
How to reverse a string in Python
In Python, the fastest and easiest way to reverse a string is the extended slice, [::-1]. print("hello world"[::-1]) # dlrow olleh This arti...
6
04-06-2020 06:08:24 mkyong (Yong Mook Kim) Beginners
Java - How to convert a byte to a binary string
In Java, we can use Integer.toBinaryString(in t) to convert a byte to a binary string representative. Review the Integer.toBinaryString(in t...
3
03-06-2020 06:49:46 mkyong (Yong Mook Kim) Beginners
Java - Convert negative binary to Integer
Review the following Java example to convert a negative integer in binary string back to an integer type. String binary = Integer.toBinarySt...
0
02-06-2020 13:06:38 mkyong (Yong Mook Kim) Beginners
Java Sign Extension
In Java, Sign extension will kick in if we are doing the following stuff: Widening primitive conversion Cast from one type to another, which...
11
02-06-2020 06:48:22 mkyong (Yong Mook Kim) Beginners
Java >> and >>> bitwise shift operators
In programming, bitwise shift operators, >> means arithmetic right shift, >>> means logical right shift, the differences: >>, it preserves t...
4
01-06-2020 12:20:53 mkyong (Yong Mook Kim) Beginners


© Jiri Pinkas | this project on GitHub | related: JavaVids | Maven Central Repository Search | Java školení

Top Java Blogs is a Java blog aggregator (with English-written blogs only) focused on Java SE, Java EE, Spring Framework and Hibernate.