Computer Science, asked by hussainsaqib121419, 2 months ago

: Write a JAVA program to extract a portion of a character string and to print the extracted portion and the remaining portion of the string. Assume that m characters are extracted, starting with the nth character

Answers

Answered by tdy7350
0

Answer:

import java.io.*;

class Extract

{

publicstaticvoid main(String args[])

{

String s,str,substr;

int extract,start,len,check;

try{

Buffered Reader obj = new BufferedReader(new InputStreamReader

(System.in));

System.out.print("Enter String : ");

System.out.flush();

str-obj.readLine();

Similar questions