no puedo resolver esta parte " Cada .nav-link debe tener un atributo href que enlace a su correspondiente .main-section (por ejemplo, si haces clic en un elemento .nav-link que contenga el texto “Hello world”, la pagina navega al elemento section con ese id)."
<nav id="navbar">
<header>Java Documentation</header>
<ul class="nav">
<li><a class="nav-link" href="#Getting_Started_With_Java">Getting Started With Java</a></li>
<li><a class="nav-link" href="#Java_Entry_Point">Java Entry Point</a></li>
<li><a class="nav-link" href="Printing_to_the_console">Printing to the console</a></li>
<li><a class="nav-link" href="Declaring_Functions">Declaring Functions</a></li>
<li><a class="nav-link" href="Object_Oriented_programming">Object Oriented Programming</a></li>
</ul>
</nav>
<main id="main-doc">
<section class="main-section" id="Getting_Started_With_Java">
<header>Getting Started With Java</header>
<p>Steps in getting started</p>
<ol>
<li>Download Java</li>
<li>Download Java SDK</li>
<li>Get an Integrated Develoment Enviroment (IDE)</li>
<li>Start a within project the IDE</li>
<li>Code Up "Hello World" and run the code</li>
</ol>
</section>
<section class="main-section" id="Java_Entry_Point">
<header>Java Entry Point</header>
<p>The entry point to a java application is the main function.</p>
<p>
It is categorized by its (string[] arg) as a paremeter to the function
</p>
<pre>
<code>
public class MyMainFunction {
/* Java main function example */
public static void main(String[] args) {
}
}
</code>
</pre>
<p>
As you can see the main function is wrapped within a class wich is
part of the object oriented structure of java Projects.
</p>
<p>The name of the project is therfore "MyMainFunction"</p>
</section>
<section class="main-section" id="Printing_to_the_console">
<header>Printing to the console</header>
<p>In order to print to the console. We use System.out.println</p>
<p>
I know, it is very long and cumbersome, but this is the way it`s done.
</p>
<pre>
<code>
public class MyMainFunction {
/* Java main function example */
public static void main(String[] args) {
}
}
</code>
</pre>
<p>In this example we are printing out"Hello world" to the console when
we run the program.
</p>
</section>
<section class="main-section" id="Declaring_Functions">
<header>Declaring Functions</header>
<p>Functions are actually called methods in Java. Here is an example of
how to declare a Java method.
</p>
<img src="https://techvidvan.com/tutorials/wp-content/uploads/sites/2/2020/02/example-of-java-method-declaration.jpg"
alt="java-method-img" class="image">
<p>Some copiable code:</p>
<pre>
<code>
public static void MyFunction (String name, int age )
{
// function code
}
</code>
</pre>
</section>
<section class="main-section" id="Object_Oriented_programming">
<header>Object Oriented Programming</header>
<p>Java is know as an object oriented programming language.</p>
<p>
This means that it is easy to represent entities as objects by using
classes and encapsulation.
</p>
<p>
An example of this might be a Student class to represent a student
</p>
<pre>
<code>
public class Student {
/* Student properties */
private String name;
private int age;
/* Constructor */
public Student(String name, int age){
this.name = name;
this.age = age;
}
/* Getter method */
public String getName(){
return name;
}
/* Setter method */
public void setName (String name) {
this.name = name;
}
</code>
</pre>
<p>we use this class by doing the following:</p>
<pre>
<code>
Student student1 = new student("jimmy", 19);
string jimyName = student1.getName();
student1. setName("Kevin");
String KevinName = student1.getName();
</code>
</pre>
</section>
<footer>
<p>Documentation brought to you on the fly by landon schlangen</p>
</footer>
</main>
[Página de documentación técnica]https://www.freecodecamp.org/espanol/learn/2022/responsive-web-design/build-a-technical-documentation-page-project/build-a-technical-documentation-page
ADVERTENCIA
El código semilla del desafío y/o tu solución excedió la longitud máxima que podemos transferir del desafío.
Tendrás que dar un paso adicional aquí para que el código que escribiste se presente en un formato fácil de leer.
Por favor, copia/pega todo el código del editor que se muestra en el desafío desde el que acabas de enlazar.
Reemplaza estas dos oraciones con tu código copiado.
Por favor, deja la línea ``` arriba y la línea ``` abajo,
porque permiten que tu código formatee correctamente en el post.
Información de tu navegador:
El agente de usuario es: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Desafío: Página de documentación técnica - Construye una página de documentación técnica
Enlaza al desafío: