This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
NewerOlder