+ 1

when I typed int a = Math.abs(10); an error comes stating cannot find symbol and the reference the error pointing is the dot. Is it due to jdk version problem . can please anyone explain?

20th Sep 2016, 1:24 PM
Chamee
Chamee - avatar
4 Antworten
+ 2
did u,import lang package containing math class ?? i.e import java.lang.*;
20th Sep 2016, 3:53 PM
Andy
Andy - avatar
+ 1
s andy's answer is write u can try import java.lang.*;
20th Oct 2016, 9:09 AM
Onkar Ashok Gumate
Onkar Ashok Gumate - avatar
0
Ah may be because of that. kk thanks anyway. I'll try again.
21st Sep 2016, 5:10 AM
Chamee
Chamee - avatar
0
Glad to be of assistance 😊😊
21st Sep 2016, 6:24 AM
Andy
Andy - avatar