Splitted print class into printUnformated and printFormated.
And fixed errors in print Unformated
This commit is contained in:
		
							parent
							
								
									a65f1192a2
								
							
						
					
					
						commit
						7ac12a8ad5
					
				| 
						 | 
					@ -53,7 +53,7 @@ public class TextOutput {
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    System.out.print(word + " ");
 | 
					                    System.out.print(word + " ");
 | 
				
			||||||
                    currentLength += word.length() + 1;
 | 
					                    currentLength += word.length() + 1;
 | 
				
			||||||
            }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            System.out.println(); //added
 | 
					            System.out.println(); //added
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -15,7 +15,7 @@ class TextOutputTest {
 | 
				
			||||||
    public void setup(){
 | 
					    public void setup(){
 | 
				
			||||||
        textOutput = new TextOutput();
 | 
					        textOutput = new TextOutput();
 | 
				
			||||||
        textOutput.formatFix(9);
 | 
					        textOutput.formatFix(9);
 | 
				
			||||||
        //textOutput.formatRaw();
 | 
					        textOutput.formatRaw();
 | 
				
			||||||
        text = new ArrayList<>();
 | 
					        text = new ArrayList<>();
 | 
				
			||||||
        text.add("123456789");
 | 
					        text.add("123456789");
 | 
				
			||||||
        text.add("1234");
 | 
					        text.add("1234");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue