Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Auto formatting output - Java Programming?
hi, is there a way to automatically format the output of a system.out.print rather than having to manually space it out (in regards to the user interface?
i.e.
******************************
** Hello **
** im **
**jordan **
is there some pre made library code that will put the two stars at the end rather than me having to space them out, i've looked around but cant find anything at the moment/
kind regards
Jordan Atkinson
2 Answers
- Anonymous8 years agoFavorite Answer
Here's the method: http://docs.oracle.com/javase/tutorial/java/data/n...
- ?Lv 44 years ago
i'm now no longer gonna write code for you (for the clarification that that could desire to defeat the point of your enrollment at a school - you already know, to learn), yet i will objective to describe some matters. you are going to could desire to enforce a Scanner merchandise - this could get the line of text cloth for you. you ought to use a delimiter (for that reason, seek for for for an area) to cut up the 1st word from the line - save this in a string. Then, use the toUpperCase function to divulge that string into, precise, all uppercase. Then, use device.out.println() with the unique string, and use + to function the uppercase'd first word to the suitable.