Skip to content
Snippets Groups Projects
Commit 9dc9a2cb authored by Matt Bovel's avatar Matt Bovel
Browse files

Fix javaThreads name

parent 06494ede
Branches main
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ Everybody is welcome to contribute by creating merge requests!
### Standard Scala files
“Normal” Scala files (ending with `.scala`) must have a `@main` method. For example, [`01-java-threads.scala`](src/main/scala/lecture1/01-java-threads.scala), the main method is `testThreads`. You can run it from the command-line, first by entering the sbt shell:
“Normal” Scala files (ending with `.scala`) must have a `@main` method. For example, [`01-java-threads.scala`](src/main/scala/lecture1/01-javaThreads.scala), the main method is `testThreads`. You can run it from the command-line, first by entering the sbt shell:
```bash
sbt
......@@ -27,15 +27,15 @@ sbt
and then by running:
```bash
runMain lecture1JavaThreads
runMain javaThreads
```
where `lecture1JavaThreads` is the name of a `@main` function. This should output something similar to:
where `javaThreads` is the name of a `@main` function. This should output something similar to:
```
sbt:cs206-demos> run lecture1JavaThreads
sbt:cs206-demos> run javaThreads
[info] compiling 1 Scala source to /Users/me/cs206-demos/target/scala-3.2.0/classes ...
[info] running lecture1JavaThreads lecture1JavaThreads
[info] running javaThreads javaThreads
Little threads did not start yet!
ThreadThread-3 has counter 0
ThreadThread-2 has counter 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment