This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Recursao{ | |
public static void main(String args[]){ | |
metodo_recursivo(0); | |
} | |
public static void metodo_recursivo(int n){ | |
if(n == 1001) | |
return; | |
System.out.println(n % 100 == 0 ? "print" : n); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%-- | |
Document : rotation | |
Created on : 17/07/2013, 20:56:20 | |
Author : Gustavo | |
--%> | |
<%@page contentType="text/html" pageEncoding="UTF-8"%> | |
<!DOCTYPE html> | |
<html> | |
<head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Document : effect | |
Created on : 17/07/2013, 22:00:44 | |
Author : Gustavo | |
Description: | |
Purpose of the stylesheet follows. | |
*/ | |
.menu p { | |
text-decoration: #333333; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class AlgoArray { | |
public static void main(String[] args) { | |
Scanner scan = new Scanner(System.in); | |
System.out.println("Digite o tamanho do Array"); | |
long tamanho = scan.nextLong(); // Recebe o valor para o tamanho do array | |
long arr[] = new long[(int) tamanho]; // Criação do array com o valor passado anteriormente |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
import java.util.Arrays; | |
public class Crescente { | |
public static void main(String[] args) { | |
Scanner scan = new Scanner(System.in); | |
Arrays crescente = null; | |
long[] arr = new long[4]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package feedback.gusthavo; | |
import javax.servlet.http.HttpServlet; | |
import java.io.IOException; | |
import java.util.Properties; | |
import javax.mail.Message; | |
import javax.mail.Session; | |
import javax.mail.Transport; | |
import javax.mail.internet.InternetAddress; | |
import javax.mail.internet.MimeMessage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mail; | |
import java.io.IOException; | |
import java.util.Properties; | |
import javax.mail.MessagingException; | |
import javax.mail.Session; | |
import javax.mail.internet.MimeMessage; | |
import javax.servlet.http.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee | |
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" | |
version="2.5" | |
xmlns="http://java.sun.com/xml/ns/javaee"> | |
<!-- Servlets --> | |
<servlet> | |
<servlet-name>greetServlet</servlet-name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='UTF-8' ?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:h="http://xmlns.jcp.org/jsf/html" | |
xmlns:p="http://primefaces.org/ui" | |
xmlns:f="http://xmlns.jcp.org/jsf/core" | |
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> | |
<h:head> | |
<title>Noticias</title> | |
</h:head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> | |
<!-- Login filter --> | |
<filter> | |
<filter-name>FiltroLogin</filter-name> | |
<filter-class>util.FiltroLogin</filter-class> | |
</filter> | |
<!-- Set the login filter to secure all the pages in the /secured/* path of the application --> | |
<filter-mapping> | |
<filter-name>FiltroLogin</filter-name> |
OlderNewer