Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
test1
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_111 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { int num_1 = 5; int num_2 = 10; // Chamada de Métodos System.out.println("total da soma="+Soma( num_1, num_2 )); System.out.println("total da subtração="+Subtracao(num_1, num_2)); System.out.println("total da multiplicação="+Multiplicacao(num_1, num_2)); } // Métodos public static int Soma(int num_1, int num_2) { return(num_1 + num_2); } public static int Subtracao( int num_1, int num_2 ) { return(num_1 - num_2); } public static int Multiplicacao( int num_1, int num_2 ) { return(num_1 * num_2); } }
run
|
edit
|
history
|
help
0
JAVA # Boşluklu bir metinde kaç adet boşluk var
jb14 isEven Links
sortArraymerge
Kochergina_5
data
test1
JAVA # Klavyeden girilen cümlede kaç adet "a" harfi var
Roberto02
Print out perfect numbers 0 – 10,000
LRU cache - Using doubly linked list (Fast!)