| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/karterhhgg/JavaProgramming/main/Strings/TakeInput.java | [Back] [Original] |
//Take an array of Strings input from the user & find
// the cumulative (combined) length of all those strings.
package Strings;
import java.util.*;
public class TakeInput {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int size = sc.nextInt();
String array[] = new String[size];
int toLength = 0;
for(int i=0; i
| Web Proxy Viewer | New URL | Original Page |