JAVA 例子

作者在 2016-12-02 15:35:39 发布以下内容
package fuck;

import java.util.Collection;

import javax.sound.midi.MidiDevice.Info;

import com.sun.glass.ui.CommonDialogs.Type;
import com.sun.media.jfxmedia.control.VideoDataBuffer;

public class ShuZu 
{
	public static void main(String[] args)
	{

//		Shu();
//		Shu1();
		Zshu();
		Xshu();

	}
	public static void Shu()
	{
		Object[] books;
		books = new String[2];
		{
			books[0] = "do you want";
			books[1] = "give me blowjob";
			for (int i = 0; i < books.length ; i++)
				{
				  System.out.println(books[i]);
				}
		}		
	}
	public static void Shu1()
		{
			Object[] objArr;
			objArr = new String[]{"suck","my","dick"};
			{
				for (int i = 0; i <objArr.length ; i++)
					{
						System.out.println(objArr[i]);
					}
			}
		}/*
	public static void Dshu()
		{
			String[] books = {"show me your tits","cum inside you pussy","creampie"};
			for (String book : books)
				{	
					System.out.println(book);
				}
		}
	public static void Zshu()
		{
			String[] books = {"show me your tits","cum inside you pussy","creampie"};
			for (String book:books)
				{
					book = "ruby on rails ";
					System.out.println(book);
				}
		}	System.out.println(books[0]);*/
	public static void Zshu()
		{
			int[] a = {5, 7 ,20};
			int[] b = new int[4];
			System.out.println("b lenger"+ b.length);
			for (int i = 0 ; i <a.length ; i++)
				{
					System.out.println(a[1]);
				}
			for (int i = 0 ; i < b.length ; i++)
				{
					System.out.println(b[i]);
				}
			b = a ;
			System.out.println("b length" + b.length);
		}
	public static void Xshu()
		{
			int[] iArr;  //定义一个数组变量,申请了一个内存空间
			iArr = new int[5]; //动态初始化,分配了5个字节 ,5个都为 0
			for (int i = 0 ;i < iArr.length ; i++)
				{
					iArr[i] = i + 10;
					System.out.println(iArr[i] = i + 10);
				}
		}

}
JAVA | 阅读 1488 次
文章评论,共0条
游客请输入验证码
浏览2354331次