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 with sharing class WeekOneHomework { | |
| public static void introToPrimitives() { | |
| //Primitives are the simplest elements in a programming language | |
| /* A selection of primitives in Apex: | |
| Integer: A number that does not have a decimal point, like 1 or 789 or -34 | |
| Decimal: A number that includes a decimal point like 1.34 or 456.78907654 | |
| String: Any set of characters surrounded by single quotes, like 'Apple' or 'I Love Strings' or '2 Legit 2 Quit' |