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
Color colorA = new Color(0xFF0096); // Use the hex number syntax | |
Color bColor = Color.decode("0xFF0096"); // or with the use of decode | |
object.setColor(Color.white); | |
setBackground(Color.white); | |
/** Alternatively using hex color codes to expand the color library **/ | |
object.setColor(new Color(0xFF0096)); | |
object.setColor(Color.decode("0xFF0096")); |
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
/** Java BufferedReader **/ | |
import java.io.*; | |
// initialize class | |
{ | |
public static void main(String [] args)throws IOException{ | |
BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in)); | |
String inputString = buffer.readLine(); | |
int inputInt = Integer.parseInt(buffer.readLine()); |
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
/** | |
* Sample for Object Oriented Programming Concepts | |
* | |
* Encapsulation | |
* | |
* @author Reyes, Omar Matthew B. | |
* @version 2013/09/07 | |
*/ | |
public class EncapsulationSample{ |
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 askAccount = ask("What's the online account details that you want to know?You can select Facebook or Twiiter", { | |
choices: "facebook, twitter, github", | |
timeout: 20.0, | |
attempts: 3, | |
onBadChoice: function(askAccount) { | |
say("I'm sorry, I didn't understand that. You can select facebook or twitter."); | |
}, | |
onChoice: function(askAccount) { | |
if(askAccount.value == "facebook"){ | |
say("Your username is [email protected]"); |
NewerOlder