Java Tutorial - 3 - Methods

Publicado em: 17 Outubro 2011
no canal de: Hacking into Coding
431
0

The goal of these videos will be to start out with a strong foundation in Java through the creation of an efficient Fraction class and then to move on to web development with Java Server Pages(JSP) and Hyper Text Markup Language(HTML). Finally we will end with mobile development on the Android.

/**
Prompts the user to type an integer value using the String s and then returns that value to the caller.
**/
public static int getAnIntegerFromTheUser(String s) {
while(true) {
try {
System.out.print(s);
return new java.util.Scanner(System.in).nextInt();
}
catch(Exception e) {
System.out.println("Invalid input.");
}
}
}


Nesta página do site você pode assistir ao vídeo on-line Java Tutorial - 3 - Methods duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Hacking into Coding 17 Outubro 2011, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 431 vezes e gostou 0 espectadores. Boa visualização!