63 066
Assignments Done
99,1%
Successfully Done
In July 2018

Answer to Question #3486 in Java | JSP | JSF for Y mukundareddy

Question #3486
(2) Write a program to find the length a given string?
Expert's answer
import java.io.*;

public class LengthFinder
{
public static void main(String[] args) throws IOException
{
BufferedReader bReader = new BufferedReader(new InputStreamReader(System.in));
& System.out.print("Enter the string: ");
& String inputStr = bReader.readLine();
& System.out.println("The length of this string = " + inputStr.length());
}

}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions