摘要:
创建对象内存分析 内存分析图 例: package com.oop.demo03; public class Application { public static void main(String[] args) { Pet dog = new Pet(); dog.name = "旺财"; do 阅读全文
摘要:
命令行传参 有时候你希望运行一个程序时候再传递给他消息,这要靠传递明命令行参数给main()函数实现。 public class Demo04{ public static void main(String args[]){ for(int i=0;i<args.length;i++){ Syste 阅读全文