Java基本数据与运算例题: package xing; import java.util.Scanner; public class x { public static void main(String[ ] args) { String name= "刘星"; /*姓名*/ String sex="男"; /*性别*/ int javaScore=90; /*Java成绩*/ System.out.println("姓名:"+name)