This file contains hidden or 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
O erro está no método void getTime(). | |
Deveria ser String getTime(). |
This file contains hidden or 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.lang.annotation.ElementType; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.annotation.Target; | |
@Retention(RetentionPolicy.RUNTIME) | |
@Target(ElementType.FIELD) | |
public @interface Positivo { |
This file contains hidden or 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 DiaDosNamorados extends CartaoWeb { | |
public DiaDosNamorados( String dest) { | |
// TODO Auto-generated constructor stub | |
destinatario = dest; | |
} |
This file contains hidden or 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 ClasseTeste implements InterfaceTeste1, InterfaceTeste2 { | |
public String publicString = ""; | |
public static String publicStaticString = ""; | |
private static String privateStaticString = ""; | |
protected String protectedString = ""; | |
public int publicInt = 0; | |
public @Positivo int negativo = -10; |
This file contains hidden or 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 abstract class CartaoWeb { | |
public CartaoWeb() { | |
// TODO Auto-generated constructor stub | |
} | |
String destinatario; | |
public abstract void showMessage(); | |
public void teste() |
This file contains hidden or 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 interface InterfaceTeste1 { | |
String s = "tttt"; | |
} |
This file contains hidden or 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 Calculadora { | |
public int soma(int a, int b) | |
{ | |
return a+b; | |
} | |
public int dobro(int a) | |
{ |
This file contains hidden or 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
using UnityEngine; | |
using System.Collections; | |
public enum GameStatus | |
{ | |
Setup, | |
Initializing, | |
ReInitializing, | |
AwaitingMasterServer, |
NewerOlder