MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

/*
 * Output:
    
public static void main(String args[]) {
lastIndexOf(t, 50) = 25
             
 * */

public class MainClass {
    public static void main(String args[]) {
        String s = "public static void main(String args[]) {";
        System.out.println(s);
        System.out.println("lastIndexOf(t, 50) = " + s.lastIndexOf('t', 50));
    }
}