MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

/*
 * Output:
>This is a test. This is, too.    <
>This is a test. This is, too.<
    
 */

public class MainClass {
    public static void main(String args[]) {
        String org = "This is a test. This is, too.    ";
        System.out.println(">" + org + "<");
        System.out.println(">" + org.trim() + "<");

    }
}