import java.util.Scanner; public class Main { public static void main(String args[]) { String s; int n; Scanner sc=new Scanner(System.in); System.out.print("Enter String : "); s=sc.nextLine(); n=s.length(); System.out.print(n); } }
Enter String : Sateesh
7