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 insufficiency to exexchange analysis and disjunction to static rules

    AriaThurin@o2-ist-linux-fa17-242: GNU nano 2.7.4 File: Calculate.java blic arrange Calculate { exoteric static int analysis (int valuel, int value2) valuel + value2: exoteric static int disjunction (int valuel, int value2) valuel - value2: exoteric static int discuss (int valuel, int value2) valuel value2: exoteric static int removal (int valuel, int value2) give-back valuel / value2: Read Get Help Exit Write Quenched 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 reputed to be my quenchedput restraint putty

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

    PreviousNext

    This has to be my upshots 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 arrange Calculate { exoteric static int analysis (int valuel, int value2) valuel + value2: exoteric static int disjunction (int valuel, int value2) valuel – value2: exoteric static int discuss (int valuel, int value2) valuel value2: exoteric static int removal (int valuel, int value2) give-back valuel / value2: Read Get Help Exit Write Quenched 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 Solution

     

    This is brief tricky restraint you to involve. Though it’s an involved progeny, they cannot root this attributable to compatibility reasons. All the mode is already quenched there. See, Java allows you to reach a Rule Static. This removes the dependency on creating an intent and then accessing the rule excluding it doesn’t involve that you cannot persuade a rule the unwritten habit, IntentName.MethodName()

    Restraint example:

    Arrange Square{

    exoteric static int area(int verge){

    give-back verge*side;

    }

    }

    Exoteric Arrange Figure{

    exoteric static destitute ocean(String[] args){

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

    Square Obj = fantastic Square();

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

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

    }

    }

    These brace rules submit the selfselfsame upshot consequently JAVA doesn’t fuse betwixt these persuades, smooth if the intent is defined as NULL, it would quiet persuade the static capacity.

    In intelliJ, giving values x=5, y=10 would submit the upshot expected.