Thanks all of you , U can close this , thanks again cheers
Type: Posts; User: Burimselmani
Thanks all of you , U can close this , thanks again cheers
thats the case i dont even know :confused:
This part sir :
// sort array
for (int i=0; i<RUNNERS; i++) {
for (int j=i+1; j<RUNNERS; j++) {
if (racer[j][0]<racer[i][0]) {
// swap times and...
The problem is that code its to complicated , i need it more simple, can edit that code above to make it more simple/clearly to understand.
Hello guys ones again , Im talking for this code again this is an workout that my teacher gives to me, I cant send that code beacuse its to complicated can somebody help me or make it to me that code...
okej look with that suggestion you give me more imagine what those line does , i will see it to try making even much better than posting again . Thank you so much for the time , sorry that I wasnt so...
//This application gets 15 racer and chooses first second and third place on a race
import javax.swing.JOptionPane;
public class Race {
public static void main(String[] args) {
...
The code is fine, compile it in your pc and u will see, theres nothing before the code executes , its simply 2d array with 15 racer each one with his own time (inputed by JOptionPane) , after gets...
program chooses first second and third place on a race, the program needs to accepts mostly 15 racers , after it gets the time of all 15 racer it prints:
winner: racer with ordinar number x and time...
Okej here is the code :
import javax.swing.JOptionPane;
public class Race {
public static void main(String[] args) {
final int RUNNERS = 15;
int[][] racer = new int[RUNNERS][2];
look sorry for not being so clearly, I have all the code of application and I know what it does but i dont know what does means those lines that i wrote above, I know its a part for sorting but i...
Can somebody tell me what actually does this in java 2d arrays :
for (int i=0; i<RUNNERS; i++) {
for (int j=i+1; j<RUNNERS; j++) {
if (racer[j][0]<racer[i][0]) {
// swap times and positions ...