Warning: Use of undefined constant AIOSEO_VERSION - assumed 'AIOSEO_VERSION' (this will throw an Error in a future version of PHP) in /homepages/3/d709960289/htdocs/clickandbuilds/zParachaProgrammingtips/wp-content/plugins/accelerated-mobile-pages/templates/features.php on line 3333 Sections – Page 5 – zParacha.com
Scanner is a utility class that provides methods to read command-line input. It is a very useful class, but you need to be aware of its unexpected behavior while reading numeric inputs. Consider following example.
One of the most common bugs I’ve seen in Java programs in the use of == operator to compare two String objects. Most of the times the result may be accurate but it is not always guaranteed. We need to understand the difference between == and the Object.equals method.