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 Suma { | |
// Método que suma dos números | |
public static int sumar(int a, int b) { | |
return a + b; | |
} | |
public static void main(String[] args) { | |
int resultado = sumar(5, 7); | |
System.out.println("La suma es: " + resultado); |