MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

public class MainClass {

    public static void main(String[] arg) {
        StringBuffer buf = new StringBuffer("The number is ");
        long number = 999;
        buf.append(number);

        buf.append(12.34);

        System.out.println(buf);
    }

}