Relate how cool it would be to have the entire dictionary for another language put into your head to importing libraries in Java to help students make sense of this abstract concept.

  • Importing libraries can be too abstract for students to grasp.
  • Since importing the library gives you access to all its content, comparing this to having instantaneous access to the contents of a foreign language dictionary helps clarify this abstract topic.
  • When teaching import starting with the Java Scanner library, tell students that everything there is to know about Scanner is in the Scanner library.
    • To have access to all this information, you have to shove the whole dictionary into your brain by using import java.util.Scanner

More about this tip

External Source

Interview with Dani McAvoy