SHARE
TWEET

Untitled

a guest Nov 9th, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2.  
  3. public class TestZaStringToChar {
  4.     public static void main(String[] args) {
  5.         Scanner scan = new Scanner(System.in);
  6.         String []niza1 = scan.nextLine().split(" <-> ");;
  7.         char []nizaChar = new char[niza1.length];
  8.         for(int i = 0; i < niza1.length ; i++)
  9.         {
  10.             nizaChar[i] = niza1[i].charAt(0);
  11.         }
  12.     }
  13.  
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top