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
I'm beginner in java
I need to know more about
button.setActionCommand(String command)
I need a command that read variable value, or read integers from text file
thanx in advance
Here's all you need to know about the setActionCommand() method in a Button, in the javadocs. Now that we're at it, I'd rather recommend you use JButton instead.
And please check a tutorial, it's the best you can do when you're learning a new programming language.
Related
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 4 years ago.
Improve this question
Expect null layout any other suggestion?
Any suggestion would be appreciate!
*Actually this post I already don't need already, how can I remove it?
One solution would be to implement your own LayoutManager (or use or extend an existing one, if one is really close to your needs) using the features and controls you are looking for. Your absolute positioning requirements would simply become a method of your layout manager.
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 am realizing that in my project I am using two libraries that, essentially, do the same thing:
1) org.mockito.Mockito.any
2) org.mockito.Matchers.any
I'd like to use just one of them to be clearer, which one should I stick to?
Thanks!
Mockito is a sub class of Matchers that's why you can still access the parent's static method like you did.
So I suggest you stick with Matchers.any() since that is where the implementation is located.
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
Can anyone tell me how to write a java program that print itself without using file IO. I googled a lot, but I can't find the exact answer. I found some useful tips here . Is there any way to write self print program without using file IO ?
Here you can find many implementations, the first by Bertram Felgenhauer follows:
class S{public static void main(String[]a){String s="class S{public static void main(String[]a){String s=;char c=34;System.out.println(s.substring(0,52)+c+s+c+s.substring(52));}}";char c=34;System.out.println(s.substring(0,52)+c+s+c+s.substring(52));}}
By the way, this is known as a quine, a program whose output is itself.
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 7 years ago.
Improve this question
I have a fully working B-Tree, and I want to convert this into a B+tree.
Is there any way that I can achieve that without changing so much of my code? is it possible?
Is there any way that I can achieve that without changing so much of my code?
Nope. Significant amount of change is required. B+ tree doesn't store data pointer in non-leaf nodes.
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 9 years ago.
Improve this question
is there any way to search all methods in Java class with regex?
(public|protected|private|static|\s) +[\w\<\>\[\]]+\s+(\w+) *\([^\)]*\) *(\{?|[^;])
With this you can, but search before ask, because i only have used the search to find this answer ^^.
I think you're looking for reflection - see this tutorial for help. Only through reflection can you access information about loaded classes - unless you're thinking of loading in the .java file and analyzing its text.