Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Darla Morrison   on Feb 28 In Java Category.

  
Question Answered By: Eline Bakker   on Feb 28

you use static method 'parseFloat(String s)' from float  class to convert
string to float

float f = Float.parseFloat(stringFloat);

every basic type  has it's coresponding class in java that you can use to do
operations regarding to the type
int -> java.lang.Integer
float -> java.lang.Float
boolean -> java.lang.Boolean
.. etc

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Type conversion Or get search suggestion and latest updates.


Tagged: