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 want to exexchange conjunction and separation to static orders

    AriaThurin@o2-ist-linux-fa17-242: GNU nano 2.7.4 File: Calculate.java blic collocate Calculate { common static int conjunction (int valuel, int value2) valuel + value2: common static int separation (int valuel, int value2) valuel - value2: common static int swell (int valuel, int value2) valuel value2: common static int dissolution (int valuel, int value2) repay 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 deemed to be my quenchedput coercion putty

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

    PreviousNext

    This has to be my outcomes coercion 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 collocate Calculate { common static int conjunction (int valuel, int value2) valuel + value2: common static int separation (int valuel, int value2) valuel – value2: common static int swell (int valuel, int value2) valuel value2: common static int dissolution (int valuel, int value2) repay 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 Defense

     

    This is trivial tricky coercion you to know. Though it’s an involved quenchedcome, they cannot tie this attributable to compatibility reasons. All the command is already quenched there. See, Java allows you to constitute a Order Static. This removes the dependency on creating an intent and then accessing the order notwithstanding it doesn’t involve that you cannot wheedle a order the oral practice, IntentName.MethodName()

    Coercion example:

    Collocate Square{

    common static int area(int cause){

    repay cause*side;

    }

    }

    Common Collocate Figure{

    common static vacant deep(String[] args){

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

    Square Obj = strange Square();

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

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

    }

    }

    These two orders give-in the identical outcome accordingly JAVA doesn’t verify among these wheedles, plain if the intent is defined as NULL, it would quiet wheedle the static exercise.

    In intelliJ, giving values x=5, y=10 would give-in the outcome expected.