Teach these four Scanner methods that allow students to write interesting code at the beginning of an introductory Java course to give students a feel for programming without overwhelming them.

  • The four methods to start with are:
    • int
    • double
    • next
    • nextline
  • These four methods provide enough functionality to work on interesting and engaging projects and are selective enough to be approachable.
  • With these four methods students can work with numbers, words, and sentences.
  • One fun project that students can do after they’ve mastered these four method, learned how to use the Scanner library, and learned println() is a Mad Lib game.

More about this tip

External Source

Interview with Dani McAvoy