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
import java.util.ArrayList; | |
import java.util.List; | |
public class Question { | |
@SuppressWarnings({ "rawtypes", "unchecked" }) | |
public static void main(String[] args) { | |
int ind[] = { 1, 1, 2 ,2 ,2 ,3 ,3, 3, 3, 4, 4, 4}; |
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
public class Duvida { | |
public static void main(String[] args) { | |
//declarando | |
int numero; | |
//inicializando | |
numero = 2234589; | |
//poderiamos ter declarado e inicializado em uma única linha | |
int numero2 = 2234589; | |
//uma outra forma válida mas menos utilizada é: | |
int x=3,y=5,z=x; |
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
import static java.lang.Math.sqrt; | |
import static java.lang.Math.pow; | |
import static java.lang.System.out; | |
public class { | |
public static void main(String[] arg) { | |
double[][] X = { { 9, 2 }, { 1, 4 }, { 9, 6 }, { 2, 8 } }; |
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
//: Playground - noun: a place where people can play | |
import Cocoa | |
//questao 1 | |
class Contact { | |
var name : String | |
var phone : String | |
var email : String | |
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
// View.js | |
class View{ | |
constructor(selector){ | |
this.element = document.querySelector(selector) | |
} | |
template(model){ | |
throw new Error("abstract method must be override") | |
} |
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
// View.js | |
class View{ | |
constructor(selector){ | |
this.element = document.querySelector(selector) | |
} | |
//deve ser reescrito | |
template(model){ | |
throw new Error("abstract method must be override") | |
} |
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
import Foundation | |
class NavigationMonth{ | |
var current = Date() | |
var next : Date{return Calendar.current.date(byAdding: .month, value: 1, to: current)!} | |
var before : Date{return Calendar.current.date(byAdding: .month, value: -1, to: current)!} | |
init() {} // deve possuir um inicializador em branco | |
init(date : Date) { |
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
var x = 0; | |
ngOnInit() { | |
var changeMapLocation = changeMapLocation(); | |
let self = this | |
if(window.navigator.geolocation){ | |
navigator.geolocation.getCurrentPosition(function(position) { | |
self.x = 10; | |
}); | |
} |
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
//declarando | |
int numero; | |
//inicializando | |
numero = 2234589; | |
//poderiamos ter declarado e inicializado em uma única linha | |
int numero2 = 2234589; | |
//uma outra forma válida mas menos utilizada é: | |
int x=3,y=5,z=x; |
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
// | |
// ConfigurationViewController.swift | |
// odonto | |
// | |
// Created by Ramires Moreira on 1/15/18. | |
// Copyright © 2018 Ramires Moreira. All rights reserved. | |
// | |
import UIKit |
OlderNewer