String Ops Demo

The following text was written to the standard output stream when the StringOps program was executed from Netbeans.

StringOps.java

run:

dateLength = 27
timeLength = 7
labLength = 12

p1 = 9
p2 = 4
p3 = 3

date.substring(0,9) = Wednesday
time.substring(2,4) = 11
lab.substring(7,8) = T

date.substring(11) = October 10, 2018
time.substring(2) = 11 PM
lab.substring(7) = Thing

line = Wednesday, October 10, 2018 | 3:11 PM | String Thing
BUILD SUCCESSFUL (total time: 0 seconds)