lucproglangcourse / lucproglangcourse.github.io

Lecture notes for COMP 371/471: Programming languages course at Loyola University Chicago with a focus on functional languages and projects mostly in Scala
MIT License
1 stars 1 forks source link

update i/o example to use Scanner #1

Closed klaeufer closed 6 years ago

klaeufer commented 6 years ago

http://lucproglangcourse.github.io/functionalprogramming.html#solving-problems-using-built-in-types-and-behaviors

    System.out.print("enter next customer: ");
    while (input.hasNextLine()) {
      final String name = input.nextLine();
      ...