MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

/*
 * Output:
 * 5
 * */
public class MainClass {
    public static void main(String args[]) {
        StringBuffer sb = new StringBuffer(40);
        sb.append(5);
        String s = sb.toString();
        System.out.println(s);
    }
}