User Profile

Collapse

Profile Sidebar

Collapse
Ozzi
Ozzi
Last Activity: Dec 17 '07, 02:14 PM
Joined: Oct 3 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Ozzi
    replied to Check the Date Format.
    in Java
    I would rather use SimpleDateForma t. Here is a very simple example of use.

    [CODE=java] //example of String to test
    String myDate = "02.03.2007 ";

    Date parsed = null;
    boolean formatOK = false;

    //first correct format
    SimpleDateForma t format1 =
    new SimpleDateForma t("dd/MM/yyyy");

    //second correct format
    SimpleDateForma t format2 =
    new SimpleDateForma t("dd.MM.yyyy") ;...
    See more | Go to post
    Last edited by r035198x; Oct 4 '07, 10:21 AM. Reason: added code tags

    Leave a comment:


  • Ozzi
    replied to Converting Double to String
    in Java
    It is not possible to receive such a BigDecimal in a Double.
    The easiest thing you can do is:

    BigDecimal myBigDecimal = new BigDecimal("123 4567890123456.1 2");
    System.out.prin tln(myBigDecima l.toPlainString ());
    See more | Go to post

    Leave a comment:


  • Ozzi
    replied to Declaring an array of objects
    in Java
    Object[] myObjectArray = new Object[n];

    where n is the number of elements of the array.
    See more | Go to post

    Leave a comment:


  • Printing Unix to Windows getting all the printers from the Windows machine

    Hi,

    My application prints Unix to Windows using the name of the machine and a generic virtual printer, but now I need to do some improvements, and I really don't know if it is possible to do what I've been asked to.
    A browsable page (jsp, html, applet, whatever) has to show all the available desktop printers and print a document that can be a .prn or a .pcl to the chosen printer.
    I've done a pilot project just to check...
    See more | Go to post
No activity results to display
Show More
Working...