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
/*This program tests if the condition is true and does something , otherwise do something else. It demonstrates the use of the short-hand ternary for conditions "?:" | |
By Rayn Zayd | |
*/ | |
public class TestCondition{ | |
public static void main(String[] args){ | |
int value1 = 5; | |
int value2 = 10; | |
int result; | |
boolean thisCondition = false;//compiles when set to true and prints 5 |
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 CompareTest{ | |
public static void main(String[] args){ | |
int x = 10; | |
int y = 5; | |
System.out.println(x == y); | |
System.out.println(x != y); | |
System.out.println(x > y); | |
System.out.println(x < y); | |
System.out.println(x >= y); |
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
/*This program demonstrates the use of arithmetic operators. It carries out basic mathematical calculations. | |
By Rayn Zayd | |
*/ | |
public class ArithTest{ | |
public static void main(String[] args){ | |
int x = 10; | |
int y = 5; | |
int z = y; |
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> | |
<title>About</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css"> | |
</head> | |
<body> |
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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package learn; | |
import java.util.Scanner; | |
/** | |
* |
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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package currencyconverter; | |
/** | |
* | |
* @author Stato |
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
/* | |
* The print Hello World app | |
*/ | |
/** | |
* | |
* @author raynz_000 | |
*/ | |
public class HelloWorld extends javax.swing.JFrame { |
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
Bicycle World | |
Welcome to Bicycle World, the premier text-based bicycle shop! This shop is only accessible to programmers like you, who are familiar with the command line. | |
In this project, I used the commands I learned to navigate and edit the filesystem. | |
The filesystem is shown below. Main directory is bicycle-world-ii. | |
bicycle-world-ii | |
|—— brands.txt | |
|—— freight/ |
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
SETDEV ENVIRONMENT | |
Daily Buzz | |
In this project, I used the commands I learned to navigate through files and directories of Daily Buzz, a national newspaper. | |
Tasks completed: | |
1.Printed the working directory. | |
2.Listed all files and directories in the current working directory | |
3.With one command, I changed directories to the national/politics/ directory. | |
4.Listed all files and directories in the working politics/ directory. |
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
/*JAVASCRIPT SYNTAX | |
Kelvin Weather Project | |
Deep in a mountain-side meteorology lab, a mad scientist Kelvin mastered weather prediction. | |
Recently, Kelvin began publishing his weather forecasts on his website. However there’s a problem: All of his forecasts describe the temperature in Kelvin. | |
With the knowledge of JavaScript, I'll convert Kelvin to Celsius, then to Fahrenheit. | |
Accomplishments: | |
1.Used console.log and string interpolation to log the temperature in fahrenheit to the console. |
OlderNewer