MathTest.java:14: cannot find symbol symbol : method abs(int) location: class Math if(z - y == x && Math.abs(y - z) == z) ^ ./Math.java:13: cannot find symbol symbol : method abs(int) location: class Math if(z - y == x && Math.abs(y - z) == z) ^ 2 errorsWhat am I doing wrong? In the unlikely event that my instructor or any administrator from Salt Lake Community College ever comes across this question, let me make my intentions clear. This question is posted in the greatest spirit of academic honesty. I ask this question to seek general advice and help in understanding the proper way to use the Java programming language. I in no way use the work of others and represent it as my own work. I use the answers provided here as a general aid in my understanding. I do all my own work and do not copy work provided by people answering my question.
Generally speaking is always better to use brackets than not using them. Prefer if(){ ... } else { ... } over if() .. else ...