herrDeng網內搜尋

自訂搜尋

Ads

2014年5月20日 星期二

利用Random產生5x8陣列並列印

利用Random產生5x8陣列並列印

29 則留言:

B10233082 唐偉強 提到...

package azazazaz;
import java.util.*;
public class sxsxsxs {

public static void main(String[] args) {
Random rnd=new Random();
int [][] a=new int[5][8];
for(int i=0;i<a.length;i++){
for(int j=0;j<a[i].length;j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}

}

}

Y10211064 黃耀葦 提到...

package ffffff;
import java.util.*;
public class tyyyyyyy {

public static void main(String[] args) {
Random rnd=new Random();
int [][] a=new int[5][8];
for(int i=0;i<a.length;i++){
for(int j=0;j<a[i].length;j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}

}

}

B1023389 提到...

package hello520;
import java.util.*;
public class ex2 {
public static void main(String[] args) {
Random rnd=new Random();
int [ ][ ] a=new int[ 5 ][ 8 ];
for (int i=0; i<5 ;i++){
for (int j=0; j<8 ;j++){
a[ i ][ j ]=rnd.nextInt(100);
System.out.print(a[ i ][ j ]+" \t ");
}
System.out.println();
}
}
}

B10233067 提到...

package hello0520;
import java.util.*;
public class ex2 {
public static void main(String[] args) {
Random rnd =new Random();
int[][] a=new int[5][8];
for(int i=0;i<a.length;i++){
for(int j=0;j<a[i].length;j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}
}
}

B10233076 提到...

package hello;
import java.util.*;
public class ex2 {

public static void main(String[] args) {
Random rnd=new Random();
int[][]a=new int[5][8];
for(int i=0;i<5;i++){
for(int j=0;j<8;j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}
}
}

B10233075 提到...

package hello;
import java.util.*;
public class ex1 {

public static void main(String[] args) {
Random rnd = new Random();
int [][] a=new int[5][8];
for(int i=0; i<a.length; i++){
for(int j=0; j<a[i].length; j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}
}

}

B10233091許少威 提到...

package dick;
import java.util.*;
public class vagina {
public static void main(String[] args) {
Random rnd = new Random();
int [][] a=new int [5][8];
for(int i=0; i<5; i++){
for(int j=0; j<8; j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}
}
}

B10233090 提到...

package tttt;
import java.util.*;
public class yyyy {

public static void main(String[] args) {
Random rnd = new Random();
int[][] a= new int [5][8];
for(int i=0; i<5; i++){
for(int j=0; j<8; j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}
}

}

B10233110 提到...

package asd123;
import java.util.*;
public class zxc123 {

public static void main(String[] args) {
Random rnd=new Random();
int [][] a=new int[5][8];
for(int i=0;i<a.length;i++){
for(int j=0;j<a[i].length;j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}

}

}

B10233092 提到...

package gang520;
import java.util.*;
public class tpa2014 {

public static void main(String[] args) {
Random rnd = new Random();
int [][] a=new int[5][8];
for(int i=0; i<5; i++){
for(int j=0 ;j<8; j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}

}

}

B10233109 提到...

package gang520;
import java.util.*;
public class tpa2014 {

public static void main(String[] args) {
Random rnd = new Random();
int [][] a=new int[5][8];
for(int i=0; i<5; i++){
for(int j=0 ;j<8; j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}

}

}

B10233069連于傑 提到...

import java.util.Random;


public class Hello521 {

public static void main(String[] args) {
Random rnd=new Random();
int[][]a=new int[5][8];
for (int i=0;i<5;i++){
for(int j=0;j<8;j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}

}

}

b10233068邱佳函 提到...

package hello;
import java.util.*;
public class ex2 {

public static void main(String[] args) {
Random rnd= new Random();
int[][] a=new int[5][8];
for(int i=0; i<a.length; i++){
for(int j=0; j<8; j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}

}

}

B10233062 黃聖評 提到...

package she1;
import java.util.*;
public class she12 {

public static void main(String[] args) {
Random rnd = new Random();
int[][] a=new int[5][8];
for(int i=0; i<a.length;i++){
for(int j=0; j<a.length;j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}
}
}

B10233062 黃聖評 提到...

package she1;
import java.util.*;
public class she12 {

public static void main(String[] args) {
Random rnd = new Random();
int[][] a=new int[5][8];
for(int i=0; i<a.length;i++){
for(int j=0; j<a.length;j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}
}
}

Y10211027張君弘 提到...

package kkk;
import java.util.*;
public class k520 {

public static void main(String[] args) {
Random rnd = new Random();
int [][] a=new int[5][8];
for (int i = 0; i < a.length; i++) {
for (int j = 0; j < a[i].length; j++) {
a[i][j] = rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}
}

}

B10233108 林宣瑋 提到...

package laolin;
import java.util.*;
public class laolin0520ex2 {

public static void main(String[] args) {
Random rnd=new Random();
int[][]a=new int[5][8];
for(int i=0;i<5;i++){
for(int j=0;j<8;j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}
}
}

B10233096 提到...

package hello0520;
import java.util.*;
public class ex2 {
public static void main(String[] args) {
Random rnd =new Random();
int[][] a=new int[5][8];
for(int i=0;i<a.length;i++){
for(int j=0;j<a[i].length;j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}
}
}

B10233065 提到...

package hello0520;
import java.util.*;
public class hello {

public static void main(String[] args) {
Random rnd =new Random();
int[][] a=new int [5][8];
for (int i=0; i&lt;5; i++){
for(int j=0; j&lt;8; j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+&quot;\t&quot;);
}
System.out.println();
}
}
}

B10233081 藍立凱 提到...

package hello520;

import java.util.*;

public class ex2 {

public static void main(String[] args) {
Random rnd = new Random();
int [][] a= new int [5][8];
for(int i=0; i<5;i++){
for(int j=0; j<8; j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}

}

}

B10233097 邱宥甄 提到...

package asd;

import java.util.Random;

public class ar {

public static void main(String[] args) {
Random rnd = new Random();
int [][] a=new int[5][8];
for(int i=0; i<5;i++){
for(int j=0 ;j<8; j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}


}

}

B10233066張哲毓 提到...

package hihihi;
import java.util.*;
public class hi0520 {

public static void main(String[] args) {
Random rnd = new Random();
int[][] a=new int[5][8];
for(int i=0; i<a.length;i++){
for(int j=0; j<a.length;j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}
}
}

B10233084 陳億如 提到...

package hello0520;
import java.util.*;
public class ex2 {

public static void main(String[] args) {
Random rnd = new Random();
int[][] a=new int[5][8];
for(int i=0; i&lt;5; i++){
for(int j=0; j&lt;8; j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+&quot;\t&quot;);
}
System.out.println();
}

B10233103 提到...

public static void main(String[] args) {
Random rnd = new Random();
int [][] a = new int[5][8];
for(int i=0; i<5; i++){
for(int j=0; j<8; j++){
a[i][j]=rnd.nextInt(1001);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}
}

}

B10233063 張宜禎 提到...

package hello0520;

import java.util.Random;

public class ex2 {

public static void main(String[] args) {
Random rnd = new Random();
int [][] a= new int [5][8];
for(int i=0; i<5;i++){
for(int j=0; j<8; j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}

}

}

B10233079 提到...

package azazazaz;
import java.util.*;
public class sxsxsxs {

public static void main(String[] args) {
Random rnd=new Random();
int [][] a=new int[5][8];
for(int i=0;i<a.length;i++){
for(int j=0;j<a[i].length;j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}

}

}

B10233109 提到...

package azazazaz;
import java.util.*;
public class sxsxsxs {

public static void main(String[] args) {
Random rnd=new Random();
int [][] a=new int[5][8];
for(int i=0;i<a.length;i++){
for(int j=0;j<a[i].length;j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}

}

}

B10233073 楊博宇 提到...

package rgrgrrg;
import java.util.*;
public class rgrgrgrga {

public static void main(String[] args) {
Random rnd=new Random();
int [][] a=new int[5][8];
for(int i=0;i<a.length;i++){
for(int j=0;j<a[i].length;j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}

}

}

B10233074 許逸憲 提到...

package zczczcc;
import java.util.*;
public class ggfgfgfg {

public static void main(String[] args) {
Random rnd=new Random();
int [][] a=new int[5][8];
for(int i=0;i<a.length;i++){
for(int j=0;j<a[i].length;j++){
a[i][j]=rnd.nextInt(100);
System.out.print(a[i][j]+"\t");
}
System.out.println();
}

}

}

Related Posts Plugin for WordPress, Blogger...

熱門文章