Search:

Type: Posts; User: Burimselmani

Search: Search took 0.11 seconds.

  1. Replies
    21
    Views
    873

    Re: Can somebody help me!

    Thanks all of you , U can close this , thanks again cheers
  2. Replies
    21
    Views
    873

    Re: Can somebody help me!

    thats the case i dont even know :confused:
  3. Replies
    21
    Views
    873

    Re: Can somebody help me!

    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...
  4. Replies
    21
    Views
    873

    Re: Can somebody help me!

    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.
  5. Replies
    21
    Views
    873

    Re: Can somebody help me!

    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...
  6. Replies
    21
    Views
    873

    Re: Can somebody help me!

    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...
  7. Replies
    21
    Views
    873

    Re: Can somebody help me!

    //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) {
    ...
  8. Replies
    21
    Views
    873

    Re: Can somebody help me!

    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...
  9. Replies
    21
    Views
    873

    Re: Can somebody help me!

    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...
  10. Replies
    21
    Views
    873

    Re: Can somebody help me!

    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];
  11. Replies
    21
    Views
    873

    Re: Can somebody help me!

    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...
  12. Replies
    21
    Views
    873

    Can somebody help me!

    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 ...
Results 1 to 12 of 12