i want to convert a line in to arrays
while ((line = bis.readLine()) != null)
in this code in line the data is storing but i want that data in array format can give any suggestions
u can also use StringTokenizer class for tokens
while ((line = br.readline()) != null)
bytearray = line.getBytes(); // either this or
chararray = line.toCharArray(); // this
thx for your reply .can you do another help for me about this code.
in my project actual point is when we read the line in this program na
that should be displayed separeately in different tabs using swings.
i am created all tabs all other .my guide told me use substring( ) it will work
If you're looking to split a String into tokens, consider using [url=http://java.sun.com/javase/6/docs/api/java/lang/String.html#split(java.lang.String)]String.split(String regex)[/url].
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.