Squares and Primitivity

To ensure this program runs correctly, please ensure that the following are up-to-date: Java Runtime Environment and Java Plugin.

This program takes as input a binary partial word and outputs all of its runs. Please enter a word using the alphabet {0, 1} and use "^" to denote a hole.