...
Code Block | ||
---|---|---|
| ||
package com.ivra.grpc.test.grpc.service.server.utils;
import static java.lang.String.valueOf;
import org.springframework.stereotype.Component;
@Component
public class FormatoSPIN {
private static final String VARIABLE_ESTATICA;
static {
VARIABLE_ESTATICA = "";
}
private String variableInstancia;
{
variableInstancia = "";
}
public static void metodoEstatico(){
int variableLocal = 0;
Persona persona = Persona
.builder()
.nombre(
"Ivan")
.apellido(
"Rodriguez")
.edad(
40)
.build();
}
public int metodo(){
int variableLocal = 0;
try {
int suma = variableLocal + 5;
return suma;
} catch (Exception e) {
throw new RuntimeException();
}
}
} |
...