Advertisement
Vladkoheca

charCounter.java

Mar 11th, 2025 (edited)
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | Source Code | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class sedma {
  4.     public static void main(String[] args) {
  5.         Scanner sc = new Scanner(System.in);
  6.  
  7.         int n = sc.nextInt();
  8.         String sentence = sc.nextLine();
  9.         char[] arr = new char[sentence.length()];
  10.  
  11.         for (int i = 0; i < 0; i++) {
  12.             arr[i] = sentence.charAt(i);
  13.             if (arr[i] == ' ') {
  14.                
  15.             }
  16.         }
  17.     }
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement