Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class TestZaStringToChar {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- String string = scan.nextLine();
- String []niza1 = string.split(" <-> ");
- char []nizaChar = new char[niza1.length];
- for(int i = 0; i < niza1.length ; i++)
- {
- nizaChar[i] = niza1[i].charAt(0);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement