Home Answers Viewqa Java-Beginners How to make a list from file text in J2ME

 
 


Wahyudi Rahmat
How to make a list from file text in J2ME
0 Answer(s)      3 years and 4 months ago
Posted in : Java Beginners

I was trying to make a method that read file from text and make a list of it, I have tried ReadHelpText method and want to make some improvement,
I've tried like this

private String readHelpText( ) {
InputStream is = getClass().getResourceAsStream( "kamus.txt" );
try {
StringBuffer sb = new StringBuffer( );
int chr, i = 0;
while ((chr = is.read()) != 9) //9 = ASCII untuk tab (HT)
sb.append((char) chr);
return sb.toString( );
} catch (Exception e) {
}
return null; }

kamus.txt file contains:
icon<HT>Sebuah lambang kecil berupa gambar yang tampak pada layar komputer.<CR><LF>
ide<HT>Integrated Drive Electronics; Sebuah tipe hardware interface yang berfungsi untuk menghubungkan harddisk.<CR><LF>

If I used method that i've created above it will return:
icon

but what i want is that method is return:
icon
ide

so I mean, it read the kamus.txt file contents but if it read <HT> that methode will ignoring the next sentence and continuing read the next line, I've thinking about using array, but i still confused to implementing it..
please, please help me about this problem..

i'd be grate full, and thanks before.
regards: Wahyu.
View Answers









Related Pages:
How to make a list from file text in J2ME - Java Beginners
How to make a list from file text in J2ME  I was trying to make a method that read file from text and make a list of it, I have tried ReadHelpText method and want to make some improvement, I've tried like this private String
How to load file from the directory in J2ME?
How to load file from the directory in J2ME?  Video player J2ME. I have a folder name "music". I want to display all file with extension is "*.mpg" on the List. How can I do it, plz help me
how to make list in our own style in pdfwriter
how to make list in our own style in pdfwriter  can u please any of one help me i want to make a list as follows in pdf file from java by pdfwriter account calculation ------------------------- amount -100.00
How to make a text effect.
How to make a text effect.       This is a text effect tutorial, you can make your text... text effect in the Photoshop, so you can use any option for that. New File
How to make a transparent text
How to make a transparent text Learn how to make a transparent text effect with this example. New File: Take a new file with white...) and make formatting as looking here. Write Text: Now write your text
J2ME Books
the platform even more powerful, ranging from new J2ME profiles and wireless messaging... a list of all the J2ME related books I know about. The computer industry is fast... organised this list with the most recently published books at the top. Pro J2ME Polish
How to make text effect
How to make text effect       Design text effect is so easy now, because I have a tutorial... color" color and text tool (T key) from tool bar, write text "ROSE
List in J2ME
List in J2ME       J2ME Canvas List Example will explain you, how to create list of items. In this example we are going to create a simple list of text, that will show
How to make a cloudy text, cloudy text, text
How to make a cloudy text      ... to do that.  After this you will able to make a cloudy text. Here... of you text as I have done here. Take another new file for text. Take a New File
How to make an image full text.
How to make an image full text.       Feel relief from color text, it's not tuff to design... option to make an image full text so follow now. Open a file: First open
How to make a 3D text, make a 3D text, a 3D text
How to make a 3D text      ... will guide you to make it. New File: Take a new file with any size as you like. Text... text on the file. Drop shadow: Go to Layer menu > Layer style > Drop shadow
How to make a grass text, make a grass text, grass text
How to make a grass text       Come to know how to make a grass text effect. New File: Take a new file with any size as you want. Text Formatting: Select Horizontal
How to make a colorful text, make a colorful text, colorful text
How to make a colorful text       You can learn here a color full text effect, this example. New File: Create a new file with any size. Write Text: Choose any color
How to make a gel text, make a gel text, a gel text
How to make a gel text       This example will help you to draw a gel text effect, it is very easy to make. New File: Take a new file with any size as you want. Effects: Go
How to make an animation in the text, make an animation in the text, an animation in the text
How to make an animation in the text   ..., in this example we are going to make animation in the text that is so easy... tool (T key) then make formatting to write text. Effect: Go to Layer menu >
How to make a honey text, make a honey text, honey text
How to make a honey text      ... text will convert into a selection then make copy. New File: Now take... tool (T key) and make formatting to write text in the document as I have
How to make a dropping text, make a dropping text, dropping text
How to make a dripping text       Making a dripping text is not tough now because this example has... document. Write text: Choose Horizontal type tool (T key) and make
Sitemap J2ME Tutorial
|  Text Field MIDlet J2ME | J2ME Contact List | Date Field MIDlet J2ME |  J2ME Button MIDlet | J2ME CheckBox ChoiceGroup MIDlet | How... Platform Micro Edition | MIDlet Lifecycle J2ME | jad and properties file
How to make text effect
How to make text effect We can make too many text effect in the photoshop, this text effect is one of them. Let's start... New File: Take a new File and adjust the file size as you need. Write Text: Select Horizontal Type
How to make a golden text,golden text, text effect
How to make a golden text      ... File: First take a new black background file as I have here. Write Text: Choose Horizontal type tool (T key) and make formatting then write any text
How to make a file in java
Description: This example demonstrate how to make a file and write string in it. To create a file in java we use the File Class. The instance of the File class is immutable that means the pathname represented by the File object
List in J2ME
List in J2ME       Exclusive List MIDlet Example This example illustrates how to create... will see how to use implicit choice list  The EXCLUSIVE List Look like as follows
how to create text file from jsp and provide downlode option
how to create text file from jsp and provide downlode option  HI... in java/j2ee tech. my question is who do i make a jsp output in the form of text file so that pepole can downlode that text file or may be some other file formate
linked list
linked list   how to add student and mark and number from file in linked list and print them also how to make search function plz can help me sooon
How to make a snow text effect
How to make a snow text effect Apply this example to make a snow text effect perfectly. New File: Take a new black background...) and make formatting to write text as here. Circle shape: Take a new
how to update the text file?
how to update the text file?  my textfile with name list.txt: Rice... in my text file, if the item i entered matches with item in text file.how can i...)); System.out.println("enter the list of items u need"); int n1=Integer.parseInt
how to text send from list to textbox - Swing AWT
how to text send from list to textbox  dear sir/madam I whant to send text from list to textbox. plz give me solution for this problem.   Hi friend, Plz explain the problem in details to solve it and specify
J2ME
J2ME  Hi friends, i have display the bar code image from Mysql database to web page i need to display that image in my J2ME application,how
j2me
j2me  in j2me i want to know how to acess third form from the second form.... so need a program for example with more thaan three form
j2me
j2me  in j2me i want to know how to acess third form from the second form.... so need a program for example with more thaan three form
How to make a chrome text effect, make a chrome text effect, chrome text effect
How to make a chrome text effect       With this example we will learn how to make a chrome text effect. New File: Take any colored background file as I have here
text file
at the start of the program from a seperate external text file.Thank you! mport...text file  Hi can you help me I have to modify the program below so that all the data held in it is stored in an external text file.So there should
How to make a blur text effect, make a blur text effect, blur text effect
How to make a blur text effect       In this example we are going to make a blur text...: Create a new file. Write text: Choose Horizontal type tool (T key) and make
How to make a reflected a 3D text, make a reflected a 3D text, reflected a 3D text
How to make a reflected a 3D text   ... reflection text effect, It has very simple steps to make it easy for the beginners so follow now. Take a gradient background file as I have here. Text: Choose
How to make a double border text, make a double border text, double border text
How to make a double border text       This example will teach you to make a double border text... with any size. Text Formatting: Choose Horizontal type tool (T key) and make
dropdown list and text fields in php
dropdown list and text fields in php  How could I use php to populate text fields by selecting a name of a business from dropdown list? Those text... number, description, and opening times from a mysql database. If you can, post
Write records into text file from database
Write records into text file from database You have already learnt how to insert records from text file to database. But here we are going to retrieve records from database and store the data into the text file. For this purpose, we have
How to make a fade text animation, make a fade text animation, fade text animation
How to make a fade text animation       This is a fade text animation example, it will surely increase... text: Choose Horizontal type tool (T key) and make formatting to write text
How to make burn text as a lava, make burn text as a lava, burn text as a lava
How to make burn text as a lava       This example will help you to make a burn text as a lava... a new file with any size as you like. Write text: Choose Horizontal type tool
how to delete a jar file from mobile by using j2me program.
how to delete a jar file from mobile by using j2me program.  When i'll update a new version jar in mobile. Then i want to delete that old jar which is previously present in mobile. How to do
How to make an animated text border, make an animated text border, animated text border
How to make an animated text border       Learn an animation by this example, it is a text.... Write text: Choose Horizontal type tool (T key) and make same formatting
how to match the key word from a text file
how to match the key word from a text file  p>Hi all, I have the code to match the key word and from the text. I have input like this reader.txt... want to get the value from the called file and get the result. String regex1
How to make a border shine text effect, make a border shine text effect, border shine text effect
How to make a border shine text effect   ... border of the text, It is very simple by this example. New File...; key and click your mouse on the layer to make selection of the text. Contract
how to make drop down list in JSF & fetch data Item from database
how to make drop down list in JSF & fetch data Item from database  how to make drop down list in JSF & fetch data Item from database
Reading text from image file - Java Beginners
Reading text from image file  How Read text from image file
Search word from text file using Java
How to Search word from text file using Java In this section, we are going to search a word from the text file. For this, we have created a swing button... from the text file. Here is the code: import java.io.*; import
List
List  getting values from a form and make a list of them and store them into database
J2ME List Image
J2ME List Image       List Image MIDlet Example This example illustrates how to create list..._COMMAND is used to recognized whether user select from list or not.    
JSP Get Data Into Dropdown list From Database
JSP Get Data Into Dropdown list From Database In this section we will discuss about how to fetch data dynamically into the dropdown list in JSP. This tutorial explains you that how to fetch data from database and set
Read Text file from Javascript - JSP-Servlet
Read Text file from Javascript  plz send the code How to Retrieve the data from .txt file thru Javascript? And how to find the perticular words in that file