Skip to content
Snippets Groups Projects
Commit 94aa7052 authored by Alice Brenon's avatar Alice Brenon
Browse files

Fix a couple mistakes on class 5

parent bbe48869
No related branches found
No related tags found
No related merge requests found
......@@ -8,11 +8,11 @@ institute:
\includegraphics[height=.9cm]{figures/INSA}
aspectratio: 169
header-includes:
\usepackage{fdsymbol}
\usepackage{textgreek}
\usepackage{bclogo}
\usepackage{Beamer/beamerthemePerso}
\setcounter{tocdepth}{1}
- \usepackage{fdsymbol}
- \usepackage{textgreek}
- \usepackage{bclogo}
- \usepackage{Beamer/beamerthemePerso}
- \setcounter{tocdepth}{1}
---
# Types
......@@ -412,7 +412,7 @@ abstract class InputStream {
```
```Java
int read()
int read() throws IOException
```
```Java
......@@ -703,7 +703,7 @@ class VolumeBar {
::::
::::{.column width=55%}
![`index.html`](figures/javadoc_output.png){height=230px}
![](figures/String_documentation.png){height=230px}
::::
:::
......@@ -740,23 +740,48 @@ javadoc [PACKAGE|SOURCE-FILE]
### Example
```Java
class StringUtil {
/**
* Replicate a String several times
* @param input the initial String
* @param n the number of repetitions
* @return the initial String concatenated the n times
*/
public static String replicate(String input, int n) {
if(times == 0) {
return "";
} else {
return input + replicate(input, times - 1);
}
}
/** A class exposing handy functions to generate Strings */
public class StringUtil {
/** Replicate a String several times
* @param input the initial String
* @param n the number of repetitions
* @return the initial String concatenated the n times */
public static String replicate(String input, int n) {
if(times == 0) {
return "";
} else {
return input + replicate(input, times - 1);
}
}
}
```
### Generated files
:::columns
::::{.column width=50%}
![](figures/javadoc_generated_files.png)
::::
:::
### The main page (`index.html`)
:::columns
::::{.column}
![](figures/javadoc_main_page.png)
::::
:::
no package, and `javadoc` resents it!
### The class itself
:::columns
::::{.column}
![](figures/javadoc_class_page.png)
::::
:::
## Classpath
### In java
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment