MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

/*
 * Output:
     
Sum is 8
    
 */

public class MainClass {

    public static void main(String args[]) {

        int i = Integer.parseInt("3");

        int j = Integer.parseInt("5");

        int sum = i + j;
        System.out.print("Sum is " + sum);
    }
}