#How do u format a line so it doesnt cut off?
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
Count chars and then put a /n
Also u cant change color of consol output
Well u could do color a if in batchfile
@shut mural could also create a text based gui and change whats outputted for color and where.
By text based, I mean a gui with text outputting onto it.
You draw the String with Graphics2D and apply the color
You could also set the = and - lines equal in length to the longest description string, and set them equal to each other.
Oh okay, thanks!
I’ll try that
how would you make it so that it doesn’t cut off words when it reaches maximum char limit?
The simplest answer would be to be concise with the description. That would involve the least amount of code. However, it would be the best in the long run to have the description reach the char limit of the = and = - and be printed out on the line below it instead. Doing this, you could simply use for loops as long as you figure out how many chars are in those. You might need nested for loops to accomplish this. I did something similar with a previous final project of mine in one of my classes for a text base social media app. Also, there are formats for string that could help, not sure if you are aware of them yet. https://www.geeksforgeeks.org/formatted-output-in-java/
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.