Home > Back-end >  Write a set of the double chromosphere Java programs
Write a set of the double chromosphere Java programs

Time:05-26

1. Object oriented programming, to achieve the double chromosphere class ShuangSeQiu (6 red balls, one basketball), red ball in
Randomly generated between 1-33, basketball randomly generated between 1 to 16 (6), requirements:
A. attribute members:
1) intred [: on behalf of the 6 red ball;
2) intblue: on behalf of basketball;
B. method members:
1) ShuangSeQiu (constructor, the default initialization complete attribute members;
(2) ShuangSeQin ntQ red, int blue), an approach to early members according to parameter attribute
The beginning;
3) getRedO, returns the length of 6 elements in 1-33 randomly generated between the number of type int
Group;
4) getBlueO, return random generation inl type integer between 1 to 16, 5 Sort (antJred) smallest to the array of red, I
6) displayO to XX. XX. XXXXXX. XXIXX way return type String the double chromosphere
The red ball, basketball information:
7) pintOur (Sting redBlue), output string redBhuer
On the basis of 2 in 1, implement the following requirements (+ 0.2)
Between A 6 red ball shall not repeat:
B display0 to XX. XX. XXXXXXXXXX way return type String of the double chromosphere
, the output of the red ball, basketball, if numerical single digits, the front cover 0. For example: the red ball or the basketball to 2, at the time of the output for 02;

3. On the basis of 2, implement the following requirements (+ 0.2)
A. the output to TXT file save;
B. a specified number of output generated, such as generated 1000 groups of the double chromosphere,

CodePudding user response:

Save the children.
PS: there is O ()

CodePudding user response:

Operations, is a basic requirement, this will not do, do not have to learn Java

CodePudding user response:

How do I also can't
  • Related