Hackerrank – Java Solution – Java Substring Solution

Hackerrank - Java Solutions Hackerrank Online Judge Solution

Hackerrank – Java Solution – Java Substring Solution

HackerRank Problem Solution

Problem Name –  Java Substring
Problem Link –   Java Substring
Level – String

Java Code

import java.util.Scanner;

public class Solution {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String str = scan.next();
int start = scan.nextInt();
int end = scan.nextInt();
scan.close();

System.out.println(str.substring(start, end));
}
}

Tags: HackerRank Online Judge Solution, HackerRank OJ Solution list, HackerRank Problems Solution, HackerRank solver, HackerRank all problem solution list, HackerRank solution in java, Hackerrank Java Solution, WHackerrank – Java Solution – Java Substring Solution, Hackerrank Online Judge Solution, Hackerrank – Java Solutions,

Leave a Reply

Your email address will not be published.