Jump to content

User input/Graphical: Difference between revisions

m
m (→‎{{header|Python}}: formatting)
m (→‎{{header|Java}}: formatting)
Line 29:
=={{header|Java}}==
{{libheader|Swing}}
<lang java> import javax.swing.*;
 
public class GetInputSwing {
public static void main(String[] args) throws Exception {
int number = Integer.parseInt(JOptionPane.showInputDialog ("Enter an Integer"));
String string = JOptionPane.showInputDialog ("Enter aan StringInteger"));
String string = JOptionPane.showInputDialog ("Enter a String");
}
}</lang>
 
=={{header|Python}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.