Here's a picture of what it ends up looking like.
I don't think it's a problem with the code as it's copied straight from the tutorial website. I've reinstalled JDK, as well as run it in command line and Eclipse. Any possibilities? The code is
import javax.swing.*;
public class Swag {
public static void main ( String[] args) {
String name = JOptionPane.showInputDialog("What is your name?");
String input = JOptionPane.showInputDialog("How old are you?");
int age = Integer.parseInt(input);
System.out.print(" Hello, " +name);
System.out.println("Next year you'll be " +(age+1));
}
}
but I don't think it's an actual code problem, I tested out another sites usage of it and the text still looks like that.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…