Help in making a text formatter

Ads

 
 

Share on Google+Share on Google+

Jan Le
Help in making a text formatter
0 Answer(s)      4 years and 9 months ago
Posted in : Java Beginners

I have a question on how to make a text formatter using Java. I attempted in doing so, but got a really low score on it, and so I'm having to rely on someone kind enough to help me.

We use string tokenizers so that the word won't break off at the end? For Left, we leave it as is? For right, we subtract string.length with the width? I'm assuming to get center we get (width - user's sentence)/2 then place at beginning and end of the text

Ads
View Answers
Ads









Related Tutorials/Questions & Answers:
Help in making a text formatter
Help in making a text formatter  I have a question on how to make a text formatter using Java. I attempted in doing so, but got a really low score on it, and so I'm having to rely on someone kind enough to help me. We use
making help window
making help window   how to make help window in gui with java
Advertisements
Help in making school project
Help in making school project  Description: A doctor has recently... in memory in the form of an object and also wrote to a text file once a new record... the text file!).A doctor section should also exist, that allows the doctor to view
Formatter
args[]){ double amount = 459.6329; DecimalFormat formatter = new
Help with opening a text file upon closing a program.
Help with opening a text file upon closing a program.  I need some helping in figuring out something I want to do. I have this program that is a swimming pool volume calculator. It stored that data on a output.txt file but I want
Setting the Formatter of a Logger Handler in Java
is XMLFormatter. Simple Formatter is used to write a file with simple text while... Setting the Formatter of a Logger Handler in Java  ... the formatter of a logger handler. Java provides a logger handler that uses a formatter
Date Formatter in JSP
Date Formatter in JSP       This section illustrates you how to use date formatter. To display the date in different formats, we have used DateFormat class. This class provides
software making
software making   software hello sir sir i have learned...++. please you give me guidness about making software. sir you tell me its... thinking.and you will help me . regards:- baljit singh
software making
software making    hello sir , sir you post me answer its difficult to make software in c and c++. but sir i want to make software in c and c++.sir i regueast you please you guid me. i hope you will help me make
MAking combinitions
MAking combinitions  Dear All, Please help me.... I have some 60-70 lineswhich contains \new\code\R2.0.1\option.c \new\code\R2.0.3\option.c \new... group) R2.2.2 And so on.... like thid i have yo make combinations please help me
Creating a Custom Formatter for a Logger Handler in Java
Creating a Custom Formatter for a Logger Handler in Java... a custom formatter for a logger handler. Java provides two types formatter... a custom formatter through the logger handler. Here you will see custom formatter
making call
making call  Hi, Is it possible to make a call from application with out quitting application in iOS 4?   hello, this the code for call to a number NSString *phoneStr = [[NSString alloc] initWithFormat:@"tel
software making
software making   hello sir you asked me language . sir i want to make software in c and c++ . which language i know. how i will do coding, and how i will give the graphical structure. and how i
Pattern,Matcher,Formatter and Scanner classes
Pattern,Matcher,Formatter and Scanner classes This section Describes : 1... using the Formatter and Scanner classes and the PrintWriter.format/printf... FFound the text "whellowwwwwwhello" starting at index 0 and ending
Help me to create a sharing text just like facebook using jsp servlet and oracle
Help me to create a sharing text just like facebook using jsp servlet and oracle   I tried to use lot of methods but i couldn't get the proper method... some thing into public! so please help me to do this project. And one more
autocomplete(): Spring mvc with jquery: I am not getting correct value in the text filed. Please help me
in the text filed. Please help me   Hi have develop the jsp to populate related birds whenever we give input in the text field. But i am getting the wrong bird value in the text filed. MultipleRemote.java : package
sir plz help in design a jsp page whichis as follow username [_____] select [__>]password [_____] after selection then onlypassword text box is visible
sir plz help in design a jsp page   sir plz help in design a jsp page which is as follow username [ _ ] select [ > ] password [ _ ] after selection then only password text box is visible
how to output text from comboBox from first frame to textField on the second frame? please help me.. thank you in advance..
how to output text from comboBox from first frame to textField on the second frame? please help me.. thank you in advance..  how to output text from comboBox from first frame to textField on the second frame? please help me
report making in asp
report making in asp  Hi sir, Please give some example report making code for jsp and mysql
DECESION MAKING STATEMENTS
DECESION MAKING STATEMENTS  The Decision Making statements may be implemented in different forms depending on the complexity of the condition to be tested. Describe various forms of decision making statements in java
Simple date formatter example
Simple date formatter example       In this section of simple date formatter example we... formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String formattedDate
how do i update my database with the help of update syntax in html <text/javascript>? How to write 'where' statement in this?
how do i update my database with the help of update syntax in html ? How to write 'where' statement in this?  var sqlmek="update into Student_info set(ID,s_name,l_name,address,pincode,mobile_no,mail_id)values ("; sqlmek
Business Intelligence for Decision Making
Business Intelligence for Decision Making  How do business intelligence helps in better decision making
help
help   how i can send a pitcture on url in java
Making own SDK - MobileApplications
Making own SDK  Hi all, I am trying to make my own universal installer for installing the JavaME mobile application to all the phones supports java.For this where from i start to think
making trees - Java Beginners
making trees   pls i do't know what this yerms mean in terms of java trees and stacks? Inorder traverse Switch statement Doing something to the stack thanks in advance
help
help  pls help me to get the code of a java program a program to perform different shapes in a menu using javaapplet
help
help  i need help with this code. write a java code for a method named addSevenToKthElement that takes an integer array, and an integer k as its arguments and returns the kth element plus 7. any help would be greatly
help
let the user to enter information of your project from a text field and should display all the computed values in the previous assignments in a text area. ... based on the percentage of cheating. please help me
Java making a method deprecated
Java making a method deprecated  java making a method deprecated In Java how to declare a method depricated? Is it correct to use depricated method in my application? But at the same time i want to show a "warning" message
HELP
HELP  I need this code to open in a new web browser. but no matter what i do it wont please help?? Directive 055 Storage Requirements for the Upstream Petroleum Industry