Need help ASAP, in puTTy but getting errors and don’t know how to fix. Pictures attached below
HAS TO BE IN PUTTY
Pass in two arguments from the Linux command line when the program starts. For example java Lab2 value1 value2. Replace value1 and value2 with integers like 200 100 – java Lab2 200 100
Remember they get passed in as strings so you need to parse them into integers using the Integer.parseInt(args[0]) before you can treat them as integers.
Create a new file Java class called Calculate.java. This class will contain two static public methods addition() and subtraction() and two non-static public methods multiply() and division(). These methods will accept two integers as input variables and will return an integer result value.
See the attached example.
AriaThurin@o2-ist-linux-fa17-242: GNU nano 2.7.4 File: Lab2.java public class Lab2 public static void main (String []args) f Integer.parselnt (args [0]) Read 6 line Get Help Exit Write Out Read File Where Is Replace Cut Text Uncut Text Justif To Spell Cur Pos Go To Line Prev Page Next Page Fir t Line Last Line Where! Nex Mark Text T Bracket Copy Text 11:39 PM 09/09/2017 6 Type here to search