I am calling abs(int) in a SurfaceView class and getting error msg that abs(int) is undefined for Preview – that is my SurfaceView class. I’ve googled for this but without much success. The hint system is not telling me an import is needed so I wonder if anyone can help.
Share
abs()is not defined inSurfaceView. TryMath.abs(int).