Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have been working on a java algorithm and I want to improve it by allowing it to accept and process very large String values.
Could you suggest me any good ways of storing the input/output results. I've been thinking of writing it on a file with the readLine(), writeLine() methods? Is this a good technique ???
I recommend you to store all your string in a text file (if possible) and use BufferedReader utilities ...
here is the a link to how its done :
https://www.tutorialspoint.com/java/io/bufferedreader_readline.htm
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 days ago.
Improve this question
I am writing a program with IPOPT in Java and due to the nature of the problem, it is rather difficult to provide a Jacobian matrix.
The question is basically the title:
Is it possible to use IPOPT without Jacobian matrix and if so how?
i couldn't find anything in the documentation, but maybe i am just blind.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
Could I take the control of the buffer (BufferedWriter) to send the data before it is full?
edit: The scenario is that. We put String like "Luck" together with other Strings into the buffer (BufferedWriter), then onto a FileWriter. Well, the BufferWriter holds all the data until is full.
You are probably looking for the flush() method, which does exactly that.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
Hi am new to java is there any other way to find string length pixel without using awt and swing
No. The length depends on how the String is rendered, so obviously only libraries that know how to render a String will be able to tell how big it would be.
It's as if I asked you to tell me the required dimensions if I wrote my username on paper.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have this code in Python:
if word[x:x+2] in twowords:
(twowords is a list). I can't figure out how to write in twowords in Java.
It looks like Python uses [x:y] to create a substring. You can use the substring method for that purpose, with the same parameters.
There is no in syntax in Java, but all Lists in Java support the contains method.
Try
if (twowords.contains(word.substring(x, x+2)))
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I'm thinking on possibility of making a Huffman code without "node".
It's based on the nodes then my question seems a bit ambiguous.
I know,maybe we have to use string's abilites ...
Is it possible ? and if "YES" how Is it possible in java?
Thanks.
You can use indices instead of nodes but you need somewhere nodes and/or vertices.