Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Formatter;
import java.util.Locale;

public class Main {

    public static void main(String[] args) {

        StringBuffer buffer = new StringBuffer();
        Formatter formatter = new Formatter(buffer, Locale.US);

        String name = "from java2s.com";
        formatter.format("Hello %s !", name);

        System.out.println(formatter.ioException());
    }
}