« Return to Thread: Float vs float !!!

Re: Float vs float !!!

by Motaz K. Saad :: Rate this Message:

Reply to Author | View in Thread

Hello,

I am working on a project using NetBeans mobility & J2ME. I need to call a web service method that takes Float[] as an argument. the problem is that I can not initialize the Float type

Float f = 1.1; //error: incomputable type (found double and Float required!)
Float f = 1.1f; //error: incomputable type (found float and Float required!)

How can I solve this problem

Thanks,
--
Motaz K. Saad

 « Return to Thread: Float vs float !!!