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 Infoweek { | |
private static AlertUtils alertUtils = new AlertUtils(); | |
private static Context ctx; | |
private Infoweek(){} | |
public static void init(Context ctx) { | |
Infoweek.ctx = ctx; | |
} | |
public static double somar(CharSequence primeiroValor, CharSequence segundoValor) { | |
if(primeiroValor.toString().isEmpty() || segundoValor.toString().isEmpty()) { |
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
#include <stdio.h> | |
#include <stdlib.h> | |
main() | |
{ | |
int matriz[3][3]; | |
int i, j; | |
int maiorDiagonalPrincipal, diagonalSecundaria; | |
maiorDiagonalPrincipal = scanf("%i", &matriz[0][0]); | |
diagonalSecundaria = 0; |
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.util.*; | |
import java.util.function.*; | |
class Example { | |
public static void main(String[] args) { | |
List<String> names = Arrays.asList("Leonardo", "John", "Maria"); | |
names.sort(Comparator.comparing(Function.identity())); | |
Consumer<String> consumer = System.out::println; |
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
#include <stdio.h> | |
main(){ | |
int i; | |
for(i = 0; i < 5; i++){ | |
getchar(); | |
fflush(stdin); | |
} | |
} |
NewerOlder