MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

import java.io.Console;
import java.sql.SQLException;

public class MainClass {
    public static void main(String[] args) throws ClassNotFoundException, SQLException {
        Console console = System.console();
        if (console == null) {
            System.err.println("sales: unable to obtain console");
            return;
        }

        console.printf("%s ", "string");
    }
}