8 Replies Latest reply: Nov 23, 2006 8:16 AM by 807607 RSS

    a have a float and i would like to be an int because of one method

      let be more detailed...

      i would like to do this : int i= (int) k ,k= float

      How can i do this without using convertion? there is method of that?

      Another problem that i have is that my program takes an argument from the command line. i take this argument into the constructor and then i am using in all my methods this line of command:

      float k= Float.valueOf(arg).floatValue();//i want float because of the problem.

      is it right that?can i do something else? there is a method for this,too?