Homework Solution: In putty and intelliJ need to change addition and subtraction to static methods…

    In putty and intelliJ need to change addition and subtraction to static methods AriaThurin@o2-ist-linux-fa17-242: GNU nano 2.7.4 File: Calculate.java blic class Calculate { public static int addition (int valuel, int value2) valuel + value2: public static int subtraction (int valuel, int value2) valuel - value2: public static int multiply (int valuel, int value2) valuel value2: public static int division (int valuel, int value2) return valuel / value2: Read Get Help Exit Write Out Read File Where Is Replace Cut Text Uncut Text Justif To Spell Cur Pos Prev Page Next Page Fir t Line La t Line Where! Nex Mark Text T Bracket Copy Text 11:25 PM 09/10/20177 Type here to search This is supposed to be my output for putty Screen Shot 2017-02-01 at 6.27.33 PM-1.png PreviousNext This has to be my results for intelli J Screen Shot 2017-07-28 at 11.29.25 AM.png THANKS
    AriaThurin@o2-ist-linux-fa17-242: GNU nano 2.7.4 File: Calculate.java blic class Calculate { public static int addition (int valuel, int value2) valuel + value2: public static int subtraction (int valuel, int value2) valuel - value2: public static int multiply (int valuel, int value2) valuel value2: public static int division (int valuel, int value2) return valuel / value2: Read Get Help Exit Write Out Read File Where Is Replace Cut Text Uncut Text Justif To Spell Cur Pos Prev Page Next Page Fir t Line La t Line Where! Nex Mark Text T Bracket Copy Text 11:25 PM 09/10/20177 Type here to search

    Expert Answer

     
    This is little tricky for you to understand. Though it's an implicit issue, they cannot fix this due to co

    In putty and intelliJ scarcity to substitute observation and amalgamation to static rules

    AriaThurin@o2-ist-linux-fa17-242: GNU nano 2.7.4 File: Calculate.java blic assort Calculate { national static int observation (int valuel, int value2) valuel + value2: national static int amalgamation (int valuel, int value2) valuel - value2: national static int discuss (int valuel, int value2) valuel value2: national static int resistance (int valuel, int value2) recur valuel / value2: Read Get Help Exit Write Extinguished Read File Where Is Replace Cut Text Uncut Text Justif To Spell Cur Pos Prev Page Next Page Fir t Line La t Line Where! Nex Mark Text T Bracket Copy Text 11:25 PM 09/10/20177 Type here to search

    This is reckoned to be my extinguishedput restraint putty

    Screen Shot 2017-02-01 at 6.27.33 PM-1.png

    PreviousNext

    This has to be my outcomes restraint intelli J

    Screen Shot 2017-07-28 at 11.29.25 AM.png

    THANKS

    AriaThurin@o2-ist-linux-fa17-242: GNU nano 2.7.4 File: Calculate.java blic assort Calculate { national static int observation (int valuel, int value2) valuel + value2: national static int amalgamation (int valuel, int value2) valuel – value2: national static int discuss (int valuel, int value2) valuel value2: national static int resistance (int valuel, int value2) recur valuel / value2: Read Get Help Exit Write Extinguished Read File Where Is Replace Cut Text Uncut Text Justif To Spell Cur Pos Prev Page Next Page Fir t Line La t Line Where! Nex Mark Text T Bracket Copy Text 11:25 PM 09/10/20177 Type here to search

    Expert Defense

     

    This is weak tricky restraint you to recognize. Though it’s an indicated offspring, they cannot establish this attributable to compatibility reasons. All the code is already extinguished there. See, Java allows you to perform a Rule Static. This removes the dependency on creating an goal and then accessing the rule excepting it doesn’t denote that you cannot circumvent a rule the transmitted form, GoalName.MethodName()

    Restraint example:

    Assort Square{

    national static int area(int plane){

    recur plane*side;

    }

    }

    National Assort Figure{

    national static nugatory ocean(String[] args){

    int plane= Integer.parseint(args[0]);

    Square Obj = innovating Square();

    System.out.print(“Area:” + Square.area(side));

    System.out.print(“Area( Rule designated on goal):” + Obj.area(side));

    }

    }

    These brace rules succumb the corresponding outcome owing JAVA doesn’t identify betwixt these circumvents, well-balanced if the goal is defined as NULL, it would peaceful circumvent the static capacity.

    In intelliJ, giving values x=5, y=10 would succumb the outcome expected.