AP Computer Science in 60 Minutes (Java)

Java

Video is ready, Click Here to View ×


Time stamps below. For additional java programming exercises and study materials, go to: http://www.krohneducation.com/

Overview of the testable language features on the AP Computer Science A Exam.
Timestamps/Topics:
0:19 variables
1:02 comments
1:17 operators
2:40 print statement
3:04 escape sequences
4:16 relational operators
4:57 logical operators
6:00 short circuit logical operators
6:59 casting
7:45 strings and concatenation
8:46 one dimensional arrays
10:48 two dimensional…

49 thoughts on “AP Computer Science in 60 Minutes (Java)

  1. 28:49 In this for-each loop, you put the wrapper class Integer as the type instead of the primitive int type? Because the values of the array are strictly just integers. However, it still printed the correct result to the console. How come? Is it because each 'slot' in an array is technically an object so it wraps the integer automatically?
    Anyways, thanks for this helpful video so I could review 🙂

  2. package shitdick;

    import java.util.Scanner;

    public class chode{
    public static void main(String Args[]){
    double x;
    double y;

    Scanner black = new Scanner(System.in);

    System.out.println("Pick 1 or 2");
    x = black.nextInt();
    System.out.println("Pick 1 or 2 ");
    y = black.nextInt();

    switch(x){
    case 1:
    System.out.println("You Are Black");
    break;
    case 2:
    System.out.println("You Are NOT Black")'
    break;
    }
    switch(y){
    case 1:
    System.out.println("You Are White");
    break;
    case 2:
    System.out.println("You Are NOT White")'
    break;
    }
    }
    }

    RETURNS either

    you are black for x ==1
    you are not black for x==2

    you are white for y==1
    you are not white for y==2

    LOL

Leave a Reply

Your email address will not be published. Required fields are marked *