I wanna know how to convert double to int? From my work i read data from file to double and i wanna use this double to deal with degree in pie chart but i cannot use double in my pie chart. looklike only int can be use overthere.
From program below, degree2[n] is double but i need to convert degree2[n] to int to use with fillArc.
Any advice please?
public void paint(Graphics g) { double degree2[] = new double[datas.size()];