

Some outputs are unnecessary, some info could be added.

Every reader of your program will see that you are closing your resource, even without your comment. You can omit comments like //Close if the next line does exactly this, explicitly.Use spacing consistently (insert a space after an opening parenthesis or not?).
#WRITE A CONSOLE CALCULATOR CODE#
Use an IDE that can automatically maintain a proper code indentation (the "switch" line is out of alignment).We Java programmers are REALLY used to these conventions, so programs that don't follow them confuse us and lead to mis-interpretations. variables and fields should begin lower-case, closing braces should be placed on their own line. Read and follow the Java code conventions: e.g.Let me suggest some improvements for the next program version. ("\n Select between (*,/,+,-)\n Type out the character in a single letter: ") Ĭase "*": (EO + "* \n Your Result: "+( xe * xo )) break Ĭase "/": (EO + "/ \n Your Result: "+ ( xe / xo )) break Ĭase "+": (EO + "+ \n Your Result: "+ ( xe + xo )) break Ĭase "-": (EO + "- \n Your Result: "+( xe - xo )) break ĭefault: ("\n Please select a valid character") } Just started out on Java and I would like to know your opinions on this calculator I made, took me 30 minutes so you can be rough.
