Computer Science, asked by somyaditya84, 11 months ago

Take a string from user and print the following
1)total number of character

Answers

Answered by dp17cr7
0

import java.util.Scanner;

public class scanner{      // Here class is scanner class can be diffrent

public static void main(String[]args){

Scanner ss = new Scanner(System.in);

String cc = ss.nextLine();

System.out.println(cc.length());

}

}

Similar questions