Assuming you mean “built-in”:
int x = 100;
System.out.println(Integer.toBinaryString(x));
(Long
has a similar method, BigInteger
has an instance method where you can specify the radix.)
More Related Contents:
- How to solve below coding exercise
- How to redirect system.out.print statements to web page in JSP
- Why is January month 0 in Java Calendar?
- How to access java-classes in the default-package?
- When should I use “this” in a class?
- Using static variables in Android
- How to fix java.net.SocketException: Broken pipe?
- Turning off hibernate logging console output
- The server time zone value ‘AEST’ is unrecognized or represents more than one time zone
- the images are not loading
- Is there a method for String conversion to Title Case?
- How do I intercept a method invocation with standard java features (no AspectJ etc)?
- Android Studio was unable to find a valid Jvm (Related to MAC OS)
- How to compress a String in Java?
- Docx to Pdf Converter in java
- JSF backing bean should be serializable?
- Efficiency of searching using whereArrayContains
- How do relative file paths work in Eclipse?
- Thymeleaf – How to loop a list by index
- Getting Ant to recognise a classpath
- Using Java with Microsoft Visual Studio 2012
- ArithmeticException thrown during BigDecimal.divide
- Trivial: Get confirmation of email sent in android
- How do I encode URI parameter values?
- Shortcut for adding to List in a HashMap
- How to split a string array into small chunk arrays in java?
- Expanding an Array? [duplicate]
- What is the best way to get the count/length/size of an iterator?
- how to share a jsf error page between multiple wars
- Using Struts2 Tags to Formatting Numbers