Buggy code:
String subsection ; String description ; int addChoice ; int sectionID ; char userEntry ; System . out . print ( "Would<seq2seq4repair_space>you<seq2seq4repair_space>like<seq2seq4repair_space>to<seq2seq4repair_space>add<seq2seq4repair_space>a<seq2seq4repair_space>section<seq2seq4repair_space>(1)<seq2seq4repair_space>or<seq2seq4repair_space>a<seq2seq4repair_space>subsection<seq2seq4repair_space>(2)?<seq2seq4repair_space>" ) ; addChoice = Methods . checkNumber ( 1 , 2 ) ; while ( addChoice == ( - 1 ) ) { System . out . print ( "Invalid<seq2seq4repair_space>selection!<seq2seq4repair_space>Please<seq2seq4repair_space>enter<seq2seq4repair_space>1<seq2seq4repair_space>or<seq2seq4repair_space>2:<seq2seq4repair_space>" ) ; } if ( addChoice == 1 ) { System . out . print ( "Please<seq2seq4repair_space>enter<seq2seq4repair_space>the<seq2seq4repair_space>desired<seq2seq4repair_space>name<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>new<seq2seq4repair_space>section:<seq2seq4repair_space>" ) ; section = user . nextLine ( ) ; System . out . print ( ( ( "Is<seq2seq4repair_space>" + section ) + "<seq2seq4repair_space>the<seq2seq4repair_space>intended<seq2seq4repair_space>section<seq2seq4repair_space>name?<seq2seq4repair_space>y//n:<seq2seq4repair_space>" ) ) ; userEntry = user . next ( ) . trim ( ) . toLowerCase ( ) . charAt ( 0 ) ; user . nextLine ( ) ; while ( userEntry != 'y' ) { System . out . print ( "Please<seq2seq4repair_space>enter<seq2seq4repair_space>the<seq2seq4repair_space>desired<seq2seq4repair_space>name<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>new<seq2seq4repair_space>section:<seq2seq4repair_space>" ) ; section = user . nextLine ( ) ; System . out . print ( ( ( "Is<seq2seq4repair_space>" + section ) + "<seq2seq4repair_space>the<seq2seq4repair_space>intended<seq2seq4repair_space>section<seq2seq4repair_space>name?<seq2seq4repair_space>y//n:<seq2seq4repair_space>" ) ) ; userEntry = user . next ( ) . trim ( ) . toLowerCase ( ) . charAt ( 0 ) ; user . nextLine ( ) ; } System . out . println ( ( ( "Please<seq2seq4repair_space>enter<seq2seq4repair_space>the<seq2seq4repair_space>description<seq2seq4repair_space>for<seq2seq4repair_space>" + section ) + ":<seq2seq4repair_space>" ) ) ; description = user . nextLine ( ) ; PrintWriter file = new PrintWriter ( new File ( "sections" ) ) ; file . println ( ( ( ( Employees . numSections ) + 1 ) + ";;" ) ) ; for ( int i = 0 ; i < ( Employees . numSections ) ; i ++ ) { file . println ( ( ( ( ( ( ( sections [ i ] . ID ) + ";;" ) + ( sections [ i ] . name ) ) + ";;" ) + ( sections [ i ] . description ) ) + ";;" ) ) ; } file . println ( ( ( ( ( ( ( ( Employees . numSections ) + 1 ) + ";;" ) + section ) + ";;" ) + description ) + ";;" ) ) ; file . close ( ) ; System . out . println ( "Section<seq2seq4repair_space>created." ) ; ReadFiles . readSections ( ) ; } else { System . out . print ( "Please<seq2seq4repair_space>enter<seq2seq4repair_space>the<seq2seq4repair_space>ID<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>parent<seq2seq4repair_space>section<seq2seq4repair_space>(0<seq2seq4repair_space>to<seq2seq4repair_space>view<seq2seq4repair_space>sections):<seq2seq4repair_space>" ) ; sectionID = Methods . checkNumber ( 0 , Employees . numSections ) ; while ( sectionID == ( - 1 ) ) { System . out . print ( ( ( "Invalid<seq2seq4repair_space>selection!<seq2seq4repair_space>Please<seq2seq4repair_space>enter<seq2seq4repair_space>a<seq2seq4repair_space>number<seq2seq4repair_space>between<seq2seq4repair_space>0<seq2seq4repair_space>and<seq2seq4repair_space>" + ( Employees . numSections ) ) + ":<seq2seq4repair_space>" ) ) ; sectionID = Methods . checkNumber ( 0 , Employees . numSections ) ; } if ( sectionID == 0 ) { System . out . println ( ) ; for ( int i = 0 ; i < ( Employees . numSections ) ; i ++ ) { System . out . println ( ( ( ( ( ( sections [ i ] . ID ) + ".<seq2seq4repair_space>" ) + ( sections [ i ] . name ) ) + "<seq2seq4repair_space>-<seq2seq4repair_space>" ) + ( sections [ i ] . description ) ) ) ; } System . out . println ( ) ; System . out . print ( "Please<seq2seq4repair_space>enter<seq2seq4repair_space>the<seq2seq4repair_space>ID<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>parent<seq2seq4repair_space>section:<seq2seq4repair_space>" ) ; sectionID = Methods . checkNumber ( 1 , Employees . numSections ) ; while ( sectionID == ( - 1 ) ) { System . out . print ( ( ( "Invalid<seq2seq4repair_space>selection!<seq2seq4repair_space>Please<seq2seq4repair_space>enter<seq2seq4repair_space>a<seq2seq4repair_space>number<seq2seq4repair_space>between<seq2seq4repair_space>1<seq2seq4repair_space>and<seq2seq4repair_space>" + ( Employees . numSections ) ) + ":<seq2seq4repair_space>" ) ) ; sectionID = Methods . checkNumber ( 1 , Employees . numSections ) ; } } System . out . println ( ( ( "Adding<seq2seq4repair_space>subsection<seq2seq4repair_space>to<seq2seq4repair_space>" + ( sections [ ( sectionID - 1 ) ] . name ) ) + "." ) ) ; System . out . print ( "Please<seq2seq4repair_space>enter<seq2seq4repair_space>the<seq2seq4repair_space>desired<seq2seq4repair_space>name<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>new<seq2seq4repair_space>subsection:<seq2seq4repair_space>" ) ; subsection = user . nextLine ( ) ; System . out . print ( ( ( "Is<seq2seq4repair_space>" + subsection ) + "<seq2seq4repair_space>the<seq2seq4repair_space>intended<seq2seq4repair_space>subsection<seq2seq4repair_space>name?<seq2seq4repair_space>y//n:<seq2seq4repair_space>" ) ) ; userEntry = user . next ( ) . trim ( ) . toLowerCase ( ) . charAt ( 0 ) ; user . nextLine ( ) ; while ( userEntry != 'y' ) { System . out . print ( "Please<seq2seq4repair_space>enter<seq2seq4repair_space>the<seq2seq4repair_space>desired<seq2seq4repair_space>name<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>new<seq2seq4repair_space>subsection:<seq2seq4repair_space>" ) ; subsection = user . nextLine ( ) ; System . out . print ( ( ( "Is<seq2seq4repair_space>" + subsection ) + "<seq2seq4repair_space>the<seq2seq4repair_space>intended<seq2seq4repair_space>subsection<seq2seq4repair_space>name?<seq2seq4repair_space>y//n:<seq2seq4repair_space>" ) ) ; userEntry = user . next ( ) . trim ( ) . toLowerCase ( ) . charAt ( 0 ) ; user . nextLine ( ) ; } System . out . print ( ( ( "Please<seq2seq4repair_space>enter<seq2seq4repair_space>the<seq2seq4repair_space>description<seq2seq4repair_space>for<seq2seq4repair_space>" + subsection ) + ":<seq2seq4repair_space>" ) ) ; description = user . nextLine ( ) ; PrintWriter file = new PrintWriter ( new File ( "subsections" ) ) ; file . println ( ( ( ( Employees . numSubsections ) + 1 ) + ";;" ) ) ; for ( int i = 0 ; i < ( Employees . numSubsections ) ; i ++ ) { <START_BUG> file . println ( ( ( ( ( ( ( ( subsections [ i ] . ID ) + ";;" ) + ( subsections [ i ] . name ) ) + ";;" ) + ( subsections [ i ] . description ) ) + ";;" ) + ( subsections [ i ] . sectionID ) ) ) ; <END_BUG> } file . println ( ( ( ( ( ( ( ( ( ( Employees . numSubsections ) + 1 ) + ";;" ) + subsection ) + ";;" ) + description ) + ";;" ) + sectionID ) + ";;" ) ) ; file . close ( ) ; System . out . println ( "Subsection<seq2seq4repair_space>created." ) ; ReadFiles . readSubsections ( ) ; } } static void menu ( int userID , int userLevel ) throws IOException { } public static void Employees ( ) throws IOException { } No newline ; at end ; of file ; }

Fix:
file . println ( ( ( ( ( ( ( ( ( subsections [ i ] . ID ) + ";;" ) + ( subsections [ i ] . name ) ) + ";;" ) + ( subsections [ i ] . description ) ) + ";;" ) + ( subsections [ i ] . sectionID ) ) + ";;" ) ) ;