Added Switch Cases in file 'Text.java' and created a method to initialise variables.