Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

public class Main {
    public static void main(String[] args) {
        StringBuilder lipsum = new StringBuilder("Lorem ipsum dolor sit amet.");
        System.out.println("lipsum = " + lipsum.toString());

        lipsum.delete(0, 28);
        System.out.println("lipsum = " + lipsum.toString());

        lipsum.deleteCharAt(lipsum.length() - 1);
        System.out.println("lipsum = " + lipsum.toString());
    }
}