में कनवर्ट नहीं कर रहा है यह कोड मैंने double
को int
में अपवाद प्राप्त करने के लिए लिखा है।डबल एक int
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Cannot cast from Double to int
यह इस
Double d = 10.9;
अपने त्रुटि है मेरी कोड
Double d = 10.9;
int i = (int)(d);
टाइपो 'convertig'। 'एन' गायब है। –