MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

/*
 * Output:
 * hello there world!   
 * */
public class MainClass {
    public static void main(String args[]) {
        StringBuffer sb = new StringBuffer("hello world!");
        sb.insert(6, "there ");
        System.out.println(sb);
    }
}