Documentez, à l’aide de Javadoc, la méthode qui permet de calculer l’aire d’un rectangle à partir des coordonnées de deux coins opposés. Les coordonnées des coins doivent être des valeurs positives. La signature de la méthode est la suivante :
public static int aireRect(int x1, int y1, int x2, int y2) { ... }Nommez cinq étiquettes Javadoc et indiquez leur signification.
Quelle est l’utilité de Javadoc?
Nommez les quatre principaux types de commentaires en Java et indiquez l'utilité de chacun ainsi que la façon de les utiliser.
The following table shows the percentage composition by mass of the nutritional content of some common foods.
| Food | % Carbohydrates | % Fats and oils | % Protein |
|---|---|---|---|
| Tuna | |||
| Bagel | |||
| Cheese | |||
| Ice cream |
Which one of the following servings has the highest energy content?
of hydrochloric acid is reacted with of magnesium hydroxide.
Determine the amount of the excess reagent remaining.
Ethanol, , is produced by the fermentation of glucose, , according to the equation:
The mass of obtained when of carbon dioxide, , is produced is: