java

hi i want to typecast long in to intdr.setScheduleDays(dfr.getSchedule_Days() );where setScheduledays is in int and getSchedule_days is in longplz help me outthanks in advance
[210 byte] By [sekhar.konkimallaa] at [2007-10-3 4:09:04]
# 1
well, my suggestion is to change dfr.getSchedule_Days() to an int.. My way of doing this would be Integer.parseInt(dfr.getSchedule_Days()). There may be a better way.Your line would then look like this:dr.setScheduleDays(Integer.parseInt(dfr.getSchedule_Days()));
merlingorea at 2007-7-14 22:09:00 > top of Java-index,Java Essentials,Java Programming...