摘要:
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
黄浩然
阅读(141)
评论(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
黄浩然
阅读(115)
评论(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
黄浩然
阅读(102)
评论(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
黄浩然
阅读(235)
评论(0)
推荐(1)
浙公网安备 33010602011771号