Skip to content

Instantly share code, notes, and snippets.

View RaynZayd's full-sized avatar

Rayn Zayd RaynZayd

View GitHub Profile
@RaynZayd
RaynZayd / CurrencyConverter.java
Created November 13, 2017 11:34
Converts British Pounds Into US Dollars
/*
* 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
@RaynZayd
RaynZayd / CurrencyConverterGUI.java
Created November 13, 2017 11:33
Converts British Pounds Into US Dollars
/*
* 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;
/**
*
@RaynZayd
RaynZayd / MarshyellowAbout.html
Created August 8, 2017 10:44
A fun html, css and w3.css success and prosperity website project that I created years ago.
<!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>
@RaynZayd
RaynZayd / ArithTest.java
Created July 26, 2017 21:34
/*This program demonstrates the use of arithmetic operators. It carries out basic mathematical calculations. By Rayn Zayd */
/*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;
@RaynZayd
RaynZayd / CompareTest.java
Created July 26, 2017 11:20
/**This program demonstrates the use of Equality, Relational and Operators. It check if two integer value are equal, not equal, greater than, less than, great or equal to and less that or equal to then prints to the screen if true or false. By Rayn Zayd **/
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);
@RaynZayd
RaynZayd / TestCondition.java
Created July 26, 2017 11:19
/*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 */
/*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