Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Nicole Hughes   on Jan 18 In Java Category.

  
Question Answered By: William Bouchard   on Jan 18

// casting in java:

long Ldays = 0L;
double days  = 5.0;
Ldays = (long)days;

// cast primitive to String:

String s = "" + Ldays;

Share: 

 
 


Tagged: