- Messaggi
- 8,912
- Reazioni
- 6,217
- Punteggio
- 193
Secondo me sarebbe meglio.Dovrei commentarlo il programma secondo voi?
E in inglese.
Segui il video qui sotto per vedere come installare il nostro sito come web app sulla tua schermata principale.
Nota: Questa funzionalità potrebbe non essere disponibile in alcuni browser.
Pubblicità
Secondo me sarebbe meglio.Dovrei commentarlo il programma secondo voi?
Eheheh, ma dovrei ritradurre tutto. Lo faccio in italiano intanto, poi se ho voglia traduco tutto in inglese.Secondo me sarebbe meglio.
E in inglese.
L'ideale sarebbe JavadocConsigli sul come commentare al meglio?
/**
* Returns an Image object that can then be painted on the screen.
* The url argument must specify an absolute {@link URL}. The name
* argument is a specifier that is relative to the url argument.
* <p>
* This method always returns immediately, whether or not the
* image exists. When this applet attempts to draw the image on
* the screen, the data will be loaded. The graphics primitives
* that draw the image will incrementally paint on the screen.
*
* @param url an absolute URL giving the base location of the image
* @param name the location of the image, relative to the url argument
* @return the image at the specified URL
* @see Image
*/
public Image getImage(URL url, String name) {
try {
return getImage(new URL(url, name));
} catch (MalformedURLException e) {
return null;
}
}
L'ideale sarebbe Javadoc
Non devi per forza usare il tool, basta rispettare lo standard:
Java:/** * Returns an Image object that can then be painted on the screen. * The url argument must specify an absolute {@link URL}. The name * argument is a specifier that is relative to the url argument. * <p> * This method always returns immediately, whether or not the * image exists. When this applet attempts to draw the image on * the screen, the data will be loaded. The graphics primitives * that draw the image will incrementally paint on the screen. * * @param url an absolute URL giving the base location of the image * @param name the location of the image, relative to the url argument * @return the image at the specified URL * @see Image */ public Image getImage(URL url, String name) { try { return getImage(new URL(url, name)); } catch (MalformedURLException e) { return null; } }
Puoi commentare come vuoi, ma visto che hai chiesto ti ho detto una soluzione più professionale. ;)Ho sempre fatto così anche a scuola e non mi ha mai detto niente il professore
Ok perfetto grazie millePuoi commentare come vuoi, ma visto che hai chiesto ti ho detto una soluzione più professionale. ;)