Welcome to The Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to

existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile

and so much more. This message will be removed once you have signed in.

Active Hackers

The best community of active hackers. This community has been working in hacking for more than 10 years.

 

Hacker Forum

Hacker from all countries join this community to share their knowledge and their hacking tools

    Hacking Tools

    You can find thousands of tools shared by hackers. RAT's, Bot's, Crypters FUD, Stealers, Binders, Ransomware, Mallware, Virus, Cracked Accounts, Configs, Guides, Videos and many other things.

      PRIV8

      Become a Priv8 user and access all parts of the forum without restrictions and without limit of download. It only costs 100 dollars, and it will last you for a lifetime.

      Read Rules

      In this community we follow and respect rules, and they are the same for everyone, regardless of the user's rank. Read the rules well not to be prohibited.

      Sign in to follow this  
      LaFamily

      Duda en JAVA

      Recommended Posts

      Buenas amigos, tengo una pequeña duda con referente a un codigo de JAVA, estoy aprendiendo pero esta duda me quedo y no quisiera avanzar hasta tener claro esto.

       

       

      El problema es este:

      Confeccionar un programa que permita cargar los nombres de 5 alumnos y sus notas respectivas. Luego ordenar las notas de mayor a menor. Imprimir las notas y los nombres de los alumnos.

       

      La Solucion esta:

       

      Hidden Content

        Give reaction to this post to see the hidden content.

       

      Pero donde tengo mi duda es aqui:

       

      Hidden Content

        Give reaction to this post to see the hidden content.

       

      Donde se coloca:

      Hidden Content

        Give reaction to this post to see the hidden content.

       

      Alguien podria explicarme el porque? de este paso?

      en nombre.legth-1-k; xq se resta -1 y -k? wacko

       

      Saluds y Gracias de Antemano. not_i

      Share this post


      Link to post
      Share on other sites

      Re: Duda en JAVA

       

      Hola la familia no sé si esto te servirá pero cuando tu generas un array[5] , los seres humanos empezamos a contar desde uno, pero las máquinas empiezan desde el 0

      Me explico

      Array [] dias={"Lunes","Martes","Miercoles","Jueves","Viernes","Sábado","Domingo"};

       

      Para imprimir Miercoles sería asi:

       

      System.out.println(dias[2]);

       

      Los Arrays comienzan desde cero Lunes sería el array[0] y así sucesivamente, espero haberte ayudado.

      Share this post


      Link to post
      Share on other sites
      Guest
      This topic is now closed to further replies.
      Sign in to follow this