CSC212 Class Example with Stacks
--D. Thiebaut (talk) 11:49, 7 October 2014 (EDT)
This program is a demo developed in class using Eclipse. The installation of Eclipse is covered in the beginning of Lab #7.
Problem to Solve
Write a program that gets lines of text from a file. The name of the file is provided on the command line. The lines will typically be lines containing words and numbers. Below is an example:
Alpha 200 10 beta 30 20 50 zetta gamma 5
Your program is to take all the numbers from the lines and print the lines with the numbers reversed. Below is an example of the output:
Alpha 5 50 beta 20 30 10 zetta gamma 200
Solution Programs