Guest User

Untitled

a guest
Mar 4th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. package jframe;
  2. import java.util.Scanner;
  3.  
  4. public class okienkowy {
  5.     public static void main(String args[]){
  6.        
  7.         Scanner UserLogin = new Scanner(System.in);
  8.         user cokolwiek = new user();
  9.         System.out.print("Podaj login: ");
  10.         cokolwiek.login = UserLogin.nextLine();
  11.  
  12.         System.out.println(cokolwiek);
  13.        
  14.  
  15.  }
  16. }
  17.  
  18.  
  19. -------------------------
  20.  
  21. package jframe;
  22.  
  23. public class user {
  24.     String login;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment