Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static int[] calculateTextStartEnd(String strings, String target) {
        int[] result = new int[2];
        result[0] = strings.indexOf(target);
        result[1] = result[0] + target.length();
        return result;
    }
}