Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package deklaracjawlasna44;
- import java.util.Scanner;
- /**
- *
- * @author student
- */
- public class Deklaracjawlasna44 {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- // TODO code application logic here
- String FirstName, SurName;
- byte[] declaration = {
- 74 , 97, 32, 110, 105, 122, 101, 106, 32, 112, 111, 100, 112, 105, 115, 97, 110, 121, 32, 100, 101, 107, 108, 97, 114,
- 117, 106, 101, 44, 32, 122, 101, 32, 97, 108, 98, 111, 32, 110, 97, 117, 99, 122, 101, 32, 115, 105, 101, 32, 74, 65,
- 86, 89, 32, 100, 111, 32, 107, 111, 110, 99, 97, 32, 115, 101, 109, 101, 115, 116, 114, 117, 32, 97, 108, 98, 111, 32,
- 110, 105, 101, 32, 110, 97, 122, 121, 119, 97, 106, 99, 105, 101, 32, 109, 110, 105, 101, 32, 115, 116, 117, 100, 101,
- 110, 116, 101, 109, 32, 33, 33, 33
- };
- Scanner ScanIn = new Scanner(System.in);
- System.out.print("Podaj swoje imie: ");
- FirstName = ScanIn.nextLine();
- System.out.print("Podaj swoje nazwisko: ");
- SurName = ScanIn.nextLine();
- ScanIn.close();
- System.out.println("\n\n-----------------------------------------------------------------------------");
- for (int i=0; i<declaration.length; i++)
- System.out.print((char)declaration[i]);
- System.out.println("\n\n" + FirstName + " " + SurName);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement