Float & float !!

View: New views
1 Messages — Rating Filter:   Alert me  

Float & float !!

by Motaz K. Saad :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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