-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathMain.java
More file actions
55 lines (27 loc) · 1.48 KB
/
Main.java
File metadata and controls
55 lines (27 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
class Main {
public static void main(String[] args) {
//Use the // to create single line comments to either add info or to take out code for debugging
System.out.println("Hello world!");
//We will be using System.out.println and System.out.print throughout the year. Try using both below to see what the difference is!
//ANSWER:
//This is my 3rd period change
//Throughout the year this year we will need to store information. For that we will be using VARIABLES!
//Java is an Object-Oriented programming language. All variables we use this year will either be OBJECTS or PRIMITIVES
//There are 8 primitives in Java: int, byte, short, long, float, double, boolean, char
//For AP we need to know: int, double, boolean
//List examples of the types below and give definition
//int (integer):
//double:
//boolean:
//For now we are just going to work with primitive
//Create 3 variables of each of the above types (USE GOOD CODING PRACTICE WHEN CREATING THE VARIABLES
//MATH TIME!
//What are the math operators that we can use?
//+ - * / %
//Try doing some math operations with numbers. How can we check to see if the math worked?
//Create codes that will print the following:
//Odd integers from 1 to 100, inclusive of both
//All multiples of 3 from 1 to 100
//Starting at 1000, print on the same line (with a - [hypthen] between each) all of the numbers that end in 0 going down to 0
}
}