CS49J Lesson 1 – Introduction

Big Java 6

When you come in

  1. Log into Canvas

This is CS49J

Instructor: Kathleen O'Brien
Email: kathleen.a.obrien@sjsu.edu

Course slides are at:

http://www.laughton.com/obrien/sjsu/cs49j/lessons/

What is CS49J

Are you adequately prepared for this class?

Checking your preparation

Here is a problem to help you evaluate your preparedness.

In your choice of C++, C, or Python, implement a function exchangesl that takes as argument an array of integers and modifies it so that the smallest and largest values are exchanged. You may assume that there is at least one element. If the largest value occurs more than once, exchange the first instance. If the smallest value occurs more than once, exchange the last instance.

Pre-class quiz

There are quizzes over the assigned reading due before each class

What you will need

Add Requests

Canvas

Why Java?

Basics

First program

Type this into an IDE

public class FirstProgram
{
     public static void main(String[] args)
     {
          System.out.println("Welcome to CS49J");
     }
}
  

Let's analyze the parts

Piazza

Activity - First Piazza Question

Record your participation in Piazza clicker question Lesson1 Q1

With which method does every Java program start?

  1. public static void main()
  2. int main()
  3. public static void main(String[] args)
  4. int main(int argc, const char* argv[])

Homework

Activity - Homework

Record your participation in Piazza clicker question Lesson1 Q2

Which of the following are true about homework assignments? May be more than one answer.

  1. If your Internet goes down, you can submit your assignment the next day.
  2. I will drop the lowest homework score.
  3. Homework is due at 1:00 AM, but you can submit until 6:00AM with no penalty.
  4. If you did your homework on time but forgot to submit it, you can submit it late.

 

Lectures