1. 程式人生 > >【自動化__持續集成】___java___字符串

【自動化__持續集成】___java___字符串

class 字符數組 自動化 pre bsp hashcode system pri com

一、代碼如下

package com.wujianbo;

/**
 * @author Administrator
 *
 */
public class Demo02 {
	public static void main(String[] args){
		System.out.println(args);
		Demo02 demo02= new Demo02();
		System.out.println(demo02);
		System.out.println("對象在堆棧中的內存首地址:"+demo02.hashCode());
		demo02.dataTye();
		int age=34;
		System.out.println(age);
		
	}
	
	public void dataTye(){
		int i= (int)1000.1;
		char[] s= {‘w‘, ‘o‘, ‘n‘, ‘i‘, ‘u‘};
		System.out.println(s);
		System.out.println("字符數組在對象棧區的首地址:"+s.hashCode());
		String b= "牛牛學院";
		System.out.println("字符串在對象棧區的首地址:"+b.hashCode());
		float f= 9999.82F;
	}

}

【自動化__持續集成】___java___字符串