aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes conversion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "conversion" Watch "conversion" New topic
Author

conversion

Rituparno Pal
Greenhorn

Joined: Oct 10, 2004
Posts: 12
how to convert binary to decimal number?
how to convert the format of date?
Arnab karmakar
Ranch Hand

Joined: Oct 04, 2004
Posts: 46
Hi Ritu ,
Look at this code.I think it will work.

import java.io.*;
public class bin2dec
{
public static void main(String [] args) throws IOException
{
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

System.out.println(Integer.toBinaryString(Integer.parseInt(input.readLine())));
}
}

Arnab
Vipin Das
Ranch Hand

Joined: Jul 05, 2004
Posts: 47
Hi
This will give u more info on date formatting
web page
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: conversion
 
Similar Threads
fundamentals
how to convert Byte to the String
Conversion to BigDecimal
how to convert html to wml
Node to int??