摘要: package com.kong;public class staticDemo05 { public static void main(String[] args) { new staticDemo05().fun(); } public void fun() { System.out.print 阅读全文
posted @ 2017-12-11 12:53 黄浩然 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 1、main函数中将实例化对象改为B a=new B(100); a.print(); 反正结果应该是 x=100 。 2、正常情况下应该是 x=0 。 3、用1的方式再来一次,只是要断开与A的连接。 阅读全文
posted @ 2017-12-11 12:50 黄浩然 阅读(113) 评论(0) 推荐(0) 编辑
摘要: package aila2;import java.util.Scanner;public class sum { public static void main(String[] args) { double sum=0; Scanner input = new Scanner(System.in 阅读全文
posted @ 2017-12-11 12:48 黄浩然 阅读(97) 评论(0) 推荐(0) 编辑
摘要: package com.aila;public class La { public int id; public String name; public int age; public String city; public void printX() { System.out.println("我 阅读全文
posted @ 2017-12-11 12:46 黄浩然 阅读(227) 评论(0) 推荐(1) 编辑