ETC

[ JAVA ] 팝업창으로 input 받기

alsruds 2023. 9. 21. 02:32
💡POINT💡
✔️ import javax.swing.*
✔️ JOptionPane.showInputDialog()

 

🦖 ID 를 입력값으로 받아 출력해보자 ! 🦖

import javax.swing.*;

public class Main {
    public static void main(String[] args) {

        String id = JOptionPane.showInputDialog("Enter a ID");
        System.out.println(id);
    }
}

 

🐾🐾🐾

 

🤍