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 restoration and non-location to static processs

    AriaThurin@o2-ist-linux-fa17-242: GNU nano 2.7.4 File: Calculate.java blic assort Calculate { common static int restoration (int valuel, int value2) valuel + value2: common static int non-location (int valuel, int value2) valuel - value2: common static int increase (int valuel, int value2) valuel value2: common static int non-location (int valuel, int value2) relinquish 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 supposed to be my quenchedput coercion putty

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

    PreviousNext

    This has to be my developments 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 assort Calculate { common static int restoration (int valuel, int value2) valuel + value2: common static int non-location (int valuel, int value2) valuel – value2: common static int increase (int valuel, int value2) valuel value2: common static int non-location (int valuel, int value2) relinquish 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 Confutation

     

    This is petty tricky coercion you to perceive. Though it’s an involved effect, they cannot tie this due to compatibility reasons. All the jurisprudence is already quenched there. See, Java allows you to reach a Process Static. This removes the dependency on creating an design and then accessing the process notwithstanding it doesn’t mean that you cannot seduce a process the oral practice, DesignName.MethodName()

    Coercion example:

    Assort Square{

    common static int area(int interest){

    relinquish interest*side;

    }

    }

    Common Assort Figure{

    common static lacking main(String[] args){

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

    Square Obj = innovating Square();

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

    System.out.print(“Area( Process seduceed on design):” + Obj.area(side));

    }

    }

    These brace processs relinquish the similar development accordingly JAVA doesn’t lump between these seduces, flush if the design is defined as NULL, it would stationary seduce the static exercise.

    In intelliJ, giving values x=5, y=10 would relinquish the development expected.