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") ;...
User Profile
Collapse
-
-
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 ());Leave a comment:
-
Object[] myObjectArray = new Object[n];
where n is the number of elements of the array.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...
No activity results to display
Show More
Leave a comment: