Turan Kaya

Greenhorn
+ Follow
since Jul 31, 2022
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Turan Kaya

Hi,
I just started to study from your book. In Chapter 1 "Running a Program in One Line" section you say "By contrast, you cannot use this new feature for a single-file program with two classes on it". But did I misunderstand? I tried and it worked with two classes in one file. I didn't give "javac Zoo.java" command. Here is my code:



Command:
-> java Zoo.java myTestArg

Result:
-> myTestArg


Edit:
This was reported as mistake at https://www.selikoff.net/ocp11-1/