Advertisement
Guest User

Untitled

a guest
Apr 8th, 2020
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1. public class Main {
  2.  
  3.     public static void main(String[] args) {
  4.         // write your code here
  5.         int a = 0;
  6.         int b = 0;
  7.         int c = 0;
  8.         String ciag = "2|3|4";
  9.  
  10.         Scanner scan = new Scanner(ciag).useDelimiter("|");
  11.         a = scan.nextInt();
  12.         b = scan.nextInt();
  13.         c = scan.nextInt();
  14.         System.out.println(b);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement