Write a Java Program using String Tokenizer class, which reads a line of integers and then displays each integer and the sum of all integers
PROGRAM:
Output:
C:\Users\Personal\Desktop\JAVA>java SUM Enter a line of integers 1 7 27 37 5 Number of tokens : 5 Tokens are : 1 7 27 37 5 The Sum of integers is : 77
No comments:
Post a Comment