Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Aditi Msc   on Nov 12 In Java Category.

  
Question Answered By: Tammy Sanders   on Nov 12

It is

pArea = new polyArea(this,(float)10000.0)

not float(10000.0)

the default type of floating point number is double. Since you need float then
you have to cast double into float.

Share: 

 

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

 


Tagged: