Advertisement
Bwagojche

Input tekst konzla

May 30th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class InputTekst {
  4. public static void main(String[] args) {
  5. Scanner inputTekst = new Scanner(System.in);
  6. System.out.println("vnesete tekst");
  7.  
  8. String vrednostKonzla = inputTekst.nextLine();
  9.  
  10. System.out.println("Tekst - " + vrednostKonzla);
  11.  
  12. }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement