Continued coverage of the Java Scanner example, this time run on Linux. To find the start of this thread, along with the source code of my Java Scanner example, see my post here. I discuss a test run on Windows …

The Java Scanner example: the Linux test run Read more »

The tutor continues discussing yesterday’s Java Scanner example.   In yesterday’s post I introduced a short program to test an instance of the Java Scanner. As of today, I’ve tried the program on both my Windows and my Linux systems. …

The Java Scanner example, continued Read more »

The tutor explains a few details about yesterday’s program. The program, with the while loop and its support code added in orange, is as follows: #!/usr/bin/perl %maritimecapitals=(‘NB’,’Fredericton’,’NS’,’Halifax’,’PEI’,’Charlottetown’); $prov = ‘Y’; while($prov ne ‘X’ && $prov ne ‘x’){ print “Hello. Which …

Perl: some explanation of yesterday’s while loop Read more »

The tutor returns to the perl sort function. Back in my post on November 27 I introduced a perl program that finds the median of a list of numbers. It depends on perl’s built-in sort function to put the numbers …

Perl: alphabetizing a list of command line arguments Read more »