Skip to content

Instantly share code, notes, and snippets.

@olgaloza
olgaloza / WeekTwoHomework.apxc
Created February 26, 2018 21:45
homeworkTwo()
public with sharing class WeekTwoHomework {
public static void homeworkAssignmentMethod() {
//Read through the set-up below and then complete the code following the prompts. When you're done, make sure to compile (save) your work
//Open Execute Anonymous in the Developer Console and execute your code by typing in: WeekTwoHomework.homeworkAssignmentMethod();
//Read through the debug statements to make sure you're done your work correctly.
//************************************************************************************************************
@olgaloza
olgaloza / CommentingOnCodeExercise.apxc
Last active February 19, 2018 22:37
RADWomen(); homework_1_b
public with sharing class CommentingOnCodeExercise {
//Your Assignment is to add comments describing what is being done in the methods below.
//Call out the concepts you learned in your readings and in class.
public static void cartValues() {
Integer minimumCartValue = 50;//We are declaring a new variable type integer and assigning a value 50 to it
Integer itemA = 10;//We are declaring a new variable type integer and assigning a value 10 to it
@olgaloza
olgaloza / WeekOneHomework.apxc
Last active February 19, 2018 22:37
RADWomen(); homework_1_a
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'