- 2

How do I go about it please

import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String text = scanner.nextLine(); char[] arr = text.toCharArray(); //your code goes here for(int x; x<arr.length; x++) { System.out.println (x); } } }

1st May 2022, 9:00 AM
Micheal Mfon
Micheal Mfon - avatar
1 Respuesta
+ 2
What is the code supposed to do?
1st May 2022, 9:23 AM
Lisa
Lisa - avatar