首页 > 编程语言 > 详细

JAVA 例子

时间:2021-01-08 09:16:55      阅读:27      评论:0      收藏:0      [点我收藏+]
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); } } }

技术分享图片
最新2020整理收集的一些高频面试题(都整理成文档),有很多干货,包含mysql,netty,spring,线程,spring cloud、jvm、源码、算法等详细讲解,也有详细的学习规划图,面试题整理等,需要获取这些内容的朋友请加Q君样:909038429
/./*欢迎加入java交流Q君样:909038429一起吹水聊天

JAVA 例子

原文:https://blog.51cto.com/15064051/2584724

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!