Questions tagged [java]

Questions about instruction specific to the programming language Java. Use this tag only when the language used would affect the question significantly (if your question uses Java as an example, but does not focus on the language itself, you need not use the tag).

Filter by
Sorted by
Tagged with
18 votes
9 answers
2k views

The order of subjects in beginner's curriculum

This year I'll be an unofficial teacher assistant in the CS class of 9th graders. Background This question is about a curriculum for introducing students to programming in java. The students are in ...
ItamarG3's user avatar
  • 6,287
8 votes
3 answers
811 views

Command-line Java in AP CS A

Context: Over the past school year I spent a significant portion of my time preparing to teach AP CS A next year. From choosing textbooks to writing the College Board syllabus, I essentially started ...
Peter's user avatar
  • 9,082
5 votes
2 answers
449 views

Introducing the MVC pattern along with JavaFX

This year I am planning to shift from teaching Swing for graphics, to teaching JavaFX. As JavaFX ideally uses the MVC design pattern, I thought it would help students understand how to use JavaFX if ...
ItamarG3's user avatar
  • 6,287
4 votes
4 answers
1k views

Lambda expressions exercises and practice

While lambda expressions in java 8 are really cool in action, the school curriculum offers no exercises in this. So essentially, students never actually learn how to use lambda expressions and the ...
ItamarG3's user avatar
  • 6,287
30 votes
11 answers
8k views

How can we teach good naming practice for students learning Java?

In writing software we name things. In Java we name classes, interfaces, methods, variables, etc. How can we teach both the importance and the skill of choosing good names? What teaching practices ...
Buffy's user avatar
  • 35.8k
25 votes
8 answers
5k views

What autograding software do folks use for Java code?

Grading currently either takes me a huge amount of time, or gets done in an extremely cursory way. It occurs to me that, if my students were able to submit code into some sort of autotester, they ...
Ben I.'s user avatar
  • 32.7k
14 votes
4 answers
551 views

The impact of switching to Java 10

Java 9 and 10 were both released recently -- Java 9 was released on Sep. 21st, 2017 and Java 10 was released on Mar. 21st 2018. These two releases contain some very big changes: Java becomes modular ...
ItamarG3's user avatar
  • 6,287
13 votes
3 answers
493 views

Do Python and Java lead students to construct different mental models of memory?

How are novices' mental models of variable storage affected by programming language choices? Most Intro to CS teachers (I think) do not delve with breadth and depth into details of how variable names ...
Bennett Brown's user avatar
10 votes
10 answers
5k views

Explaining how an Interface is a contract

When teaching Interfaces (in Java, for example), it is common to describe them as a contract. Which means that if a class implements an interface, it has to use the methods in the interface. As an ...
ItamarG3's user avatar
  • 6,287
5 votes
3 answers
544 views

Lesson plan for teaching java graphics

Background: This lesson should give a firm foundation for graphics in Swing in java to students in high school who know OOP in java (...
ItamarG3's user avatar
  • 6,287
5 votes
3 answers
338 views

Teaching C++ to students that know Java

I am now teaching an OOP course to 2nd year undergrads. This is actually a course in advanced programming in Java. In the next semester, I am going to teach the same students, a C++ course. From what ...
Erel Segal-Halevi's user avatar
4 votes
2 answers
95 views

Teaching coding paradigms and concepts with specific context

Teaching programming is a great part of mentoring FRC (FIRST Robotics Competition) teams. For teaching how to program a robot (Specifically, a RoboRIO), I first (unintended pun: FIRST) need to teach ...
ItamarG3's user avatar
  • 6,287
4 votes
7 answers
259 views

Mental Model of Type Conformance/Subtype Polymorphism

I'm finding that my CS2 students really struggle with the notions of type conformance and subtype polymorphism in Java. Say we have the following: ...
cryptic_star's user avatar