Double[] tabd = {new Double(3), new Double(2), new Double(1), "new Double(
1.5), new Double(1.45), new Double(1.43), new Double(1.42)};

Mais tu voulais peut-etre

double[] tabd = {3D, 2D, 1D, 1.5D, 1.45D, 1.43D, 1.42D};                //
le D est optionel !

Dominique



|---------+---------------------------->
|         |           "HAREL Anthony"  |
|         |           <anthony.harel@c-|
|         |           s.fr>            |
|         |                            |
|         |           05/02/2003 14:24 |
|         |           Please respond to|
|         |           java             |
|         |                            |
|---------+---------------------------->
  
>-------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                          |
  |       To:       "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>                            
                                          |
  |       cc:       (bcc: Dominique Gallot/BRU/MASTERCARD)                             
                                          |
  |       Subject:  initialisation d'un tableau de Double                              
                                          |
  
>-------------------------------------------------------------------------------------------------------------------------------|




Petite question b�te :
Je veux initialiser en dur un tableau de Double, j'ai essay� :
       Double[] tabd = {3, 2, 1, 1.5, 1.45, 1.43, 1.42};
        et
      Double[] tabd = {"3", "2", "1", "1.5", "1.45", "1.43",
"1.42"};
mais ca ne marche pas.


--
_______________________________

  Anthony HAREL


  mailto:[EMAIL PROTECTED]
_______________________________








**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

Répondre à