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 1 year ago.
Improve this question
Hello have problem with the value string and cant compile cause of this
screenshot of the error
https://i.stack.imgur.com/laGkq.png
can someone help? thanks!
You can't assign a generic type to a value in Java since it needs to know what's being set in the memory (for the length).
For more information, you should read a bit about Generic Types
It's hard without the that small amount of code to tell, but normally, if you remove the (T), you should not get that error.
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 8 days ago.
Improve this question
I'm writing a simple program where I can change a piece of text. For example printing text "This is a problem with xxx" and I could delete "xxx" and place my own text there. "xxx" representing a default value.
I tried searching but I think I'm using the wrong search terms or I just don't understand the answers.
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 6 years ago.
Improve this question
What's the difference between declaring a class inside of another class and declaring a class in a separate file?.
Literally, nested classes were added to Java for two reasons:
1. Source code clarity.
2. Name-conflict reduction.
Java actually didn't need to support doing this, but they were totally doing programmers a "solid" because I'm sure they know how messy code can get when you're in the moment of it all.
To answer your question, explicitly: The difference is that there really IS NOT a difference, it just makes code easier to read and you end up with less name-conflict mistakes.
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.
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 8 years ago.
Improve this question
I'm debugging an application and realized that the debugger displays String[] in two different ways, namely these two: ['test'] and [test]. Those displayed in the second way work for my purpose and the other doesn't.
What's the difference between these two?
It sounds like in the first case, the single quote characters are part of the string. Try adding code to remove them.