File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

conversion

 
Rituparno Pal
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to convert binary to decimal number?
how to convert the format of date?
 
Arnab karmakar
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
This will give u more info on date formatting
web page
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic