Discuss / Java / 练习

练习

Topic source

DuskSide

#1 Created at ... [Delete] [Delete and Lock User]
public class Main {    public static void main(String[] args) {        City bj = new City();        bj.name = "Beijing";        bj.latitude = 39.903;        bj.longitude = 116.401;        System.out.println(bj.name);        System.out.println("location: " + bj.latitude + ", " + bj.longitude);    }}class City {    String name;    double latitude;    double longitude;}

  • 1

Reply