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
[{"id": "THISISTHEFIRSTIDYOUWOULDNTUSE"}] |
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
def cenas(): | |
print('ola') | |
cenas() |
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
export class Test { | |
public myString: string; | |
constructor(myString: string) { | |
this.myString = myString; | |
} | |
} |
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
(function test() { | |
console.log('Testing'); | |
})(); |
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
int capacity = 20; | |
List myList = new ArrayList(capacity); |
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
try { | |
Thread.sleep(1500); | |
} catch(InterruptedException e) { | |
//This should never happen... | |
} |
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 LoginHandler { | |
public boolean login(String username, String password) { | |
String passwordFromDB = getPasswordFromDB(username); | |
return password.equals(passwordFromDB); | |
} | |
//... | |
} |
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
String s1 = null; | |
String s2 = "s2"; | |
boolean areEqual = s1.equals(s2); |
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 LoginHandler { | |
public boolean login(String username, String password) { | |
if(username != null && password != null) { | |
String passwordFromDB = getPasswordFromDB(username); | |
return passwordFromDB != null && password.equals(passwordFromDB); | |
} | |
return false; | |
} | |
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
// Passing the capacity to the array list... Remember? :) | |
List<String> list = new ArrayList(2); | |
list.add("Test"); // This is right | |
list.add(2) // Compile time error... This list only accepts string elements |
OlderNewer