← Back to feed
Renewal·서른의 생활코딩

ex15) java

NS
normalstory
cover image
class Test11{
        //int Sum(int a,b){  // = X
        //Every parameter in a function must be individually preceded by a data type.

        int Sum(int a,int b){
        return (a+b);
        }
}
public class Fun08 {
        public static void main(String[] args) {
        Test11 t11 = new Test11();
        //t11.Sum(10,20);
        System.out.println(t11.Sum(10,20));
        }
}

This English version was translated by Codex.

친절한 찰쓰씨
Written by
친절한 찰쓰씨

Pleasant Charles — UI/UX researcher at AIT. Keeping notes on design, planning, and slow days here since 2010.