// JavaScript CS
// convert to string
// --------------------------------------------------------------------
let myNumber = 9;
let myString = String(score);
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<!-- User is Logged in --> | |
<div class="logged-out" style="display: none;"> | |
<fb:login-button | |
scope="public_profile,email,user_friends" |
This file contains 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
for(int i = 0; i < vector.length - 1; i++) { | |
for(int k = 0; k < vector.length -1; k++) { | |
if (vector[k] > vector[k + 1]) { | |
int aux = vector[k]; | |
vector[k] = vector[k + 1]; | |
vector[k + 1] = aux; | |
} | |
} | |
} |
This file contains 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
/** | |
* Aplicar filtro da média a uma matriz. | |
*/ | |
public int[][] filterMedia(int[][] matrix) { | |
int[][] novaMatrix = new int[matrix.length][matrix.length]; | |
int[][] directions = new int[][] { | |
{-1, -1}, | |
{-1, 0}, | |
{-1, 1}, | |
{ 0, -1}, |