Recent Posts
-
Java – advanced tag generator for complex mathematical expressions
I want to mark a string of integers, floating point numbers, operators, functions, variables, and parentheses The foll…… -
Java – how to make my program run outside eclipse
I have a solar eclipse project When I click the green circle play button in the IDE, it will do everything I want it t…… -
Java – control structure used with 3 possible inputs (efficiency)
In my java program, I need a control structure that should provide three different results for three different inputs …… -
Java – how does null work in this code?
See English answers > method overloading and choosing the most specific type 9 class Test1{ public void doStuff…… -
Java – redraws jpanels with different images each time you click
I'm still a novice in Java. I have the following questions public class Level { JPanel panel String img1Path = "im…… -
Java – call the actionperformed method using normal class methods
I try to call actionPerformed () in a generic class method. I know it will be executed automatically as long as I pres…… -
How to combine two object arrays in Java
I have this little script to get information from Excel files After collecting the information I need, I want to combi…… -
Java SWT link widget – how do I delete hyperlink underscores?
I know we can use: setText("<a> href="url"> Link </a>"); Create a link But this is emphasized I want a …… -
Java – Android VM heap size
I can't understand what Android App heap size is Runtime rt = Runtime.getRuntime(); long maxMemory = rt.maxMemory(); L…… -
Java EE – Java EE – search the web XML general specification
I'm new to Java EE I found web XML is a standard file (deployment descriptor) used by many servlet container / applica…… -
Java – how to use enum in the right way?
I like Java very much. I use enumeration for the first time, as shown below: public class Web { public String …… -
Java – refresh JTable when setautocreaterowsorter is true
I wrote a default table as follows: public class CustTableRenderer extends DefaultTableCellRenderer{ @Override …… -
Java – JNI string return value
I have a Java instance method that returns a string. I call this method through JNI in C I wrote the following code: c…… -
Java – JBoss application server: accessing deployed web applications from another machine
I have deployed my web application to JBoss standalone application server v7 1.1 upper But for some reason, I can't ac…… -
Java – compare string input
import java.util.Scanner; import java.util.Scanner; public class TrueFalseQuiz { public static void main(String[…… -
What are the different ways to transform XML using Java?
I'm studying how to convert XML from one format to another in a java project What are the alternatives and what are th…… -
Java – run JUnit tests for a certain amount of time
I want to test for a period of time, such as 5 seconds, and then pass the test if no error is asserted Can this be ann…… -
Upgrade from Java 1.4 to Java 6 se
I am currently upgrading from Java 1.4 to Java 6 se Some methods and classes have been deprecated or there have been n…… -
Java – which pattern of using policy patterns can avoid duplicate code in concrete policies?
I am unfamiliar with design patterns. In the following example, I use what I think is the strategy pattern However, I …… -
Java – no suitable driver Try using hibernate to connect to the PostgreSQL database on heroku
I'm sorry to bother you, but I've been receiving errors. I don't understand why As specified in the title, I'm trying …… -
Java 7 try with resources (autocolosable) implementation
My question is more about the type than how I know that there are the following jobs in Java 7: try ( File…… -
How to synchronize scroll bars on JavaFX?
There are two textareas in my application. I want to synchronize the scrollbars when I move one of them But I can't fi…… -
Generics in Java – interoperability with legacy code
I'm reading oracle http://docs.oracle.com/javase/tutorial/extra/generics/legacy.html This tutorial for But I can't fig…… -
Validate multiple images using approvaltest
I have a way to generate some images (1. JPG, 2. JPG...) and write them to the file system I want to verify the result…… -
Adding properties from Java to groovy objects
I want to be able to add properties to an instance of a string object using the metaprogramming capabilities of groovy…… -
Java – need help writing numbers in reverse order
I got help with the task I don't ask anyone to do my job, but I really honestly insist on how to do it I should write …… -
Java – pass a map or object from a JSP to a servlet
I have an application that passes the mapping from servlet to JSP In JSP, I display the map and provide the option to …… -
Java – find the median in the B-tree
I need to implement a B - tree I need to create the following methods: >Insert (x) – 0 (log_t (x)). > Search – s…… -
Java – the principle of Least Surprise [copy]
See English answers > java double precision 2 double d = 0.0; for (int i = 0; i < 10; i++) { d =…… -
Java – collision detection using polygons
I wonder if anyone can give me an idea of how to implement the first class to define polygons and how to use this clas…… -
Extend the Java comparator to compare specific classes of interfaces that implement its comparison
I have a comparator like this: public class XComparator implements Comparator<X>,Serializable { } Currently used…… -
Java – run a specific class main function from a jar file Import doesn’t seem to work
I have a jar file that does not specify its main class in the manifest How to run a class from Jar which is not the Ma……