Recent Posts
-
Thread problem in Java HashMap
Something happened that I'm not sure should work Obviously it's because I've seen it, but I need to find the root caus…… -
Import the textfile and read it line by line in Java
I want to know how to import a text file I want to import a file and read it line by line thank you! Solution I don't …… -
Sorting point lists using java
See English answers > sort ArrayList of custom objects by property 25 Solution Yes, create a custom comparator and …… -
How to use JTable’s row classifier to restore the original row order?
I have enabled sorting in JTable using the setautocreaterowsorter method Clicking the column header will switch betwee…… -
Why is this code sent to me stackoverflow in Java
I tried to use long and double with C, K, n variables, but NetBeans showed a stack overflow error: public class Main {…… -
Why doesn’t Java use the out parameter in c#’s language syntax?
Although I'm not a big fan of using the out parameter in c#, I wonder why Java chose not to include it in its language…… -
For multiple lock attempts, use Java concurrent. ReentrantLock
I noticed the following code block: final Lock s = new reentrantlock(); for(int i = 0 ; i < 1000 ; i++) { …… -
Java – “startswith” is faster than “indexof”?
I write code in Java to cycle through the dataset at the same time according to whether the string starts with some ch…… -
java – XML vs JSON. Which is better for storing small pieces of data?
See English answers > What are the pros and cons of XML and JSON? [closed] 17 1. Which is better? XML or JSON for s…… -
How to modify the final StringBuffer value after creation in Java?
I know the final variable characteristics It cannot change from its initialization state however How is StringBuffer d…… -
Java 8: changing the value of the entryset stream
I have the following settings: My problem is that strings as project map values are marked with tags I want getitems (…… -
How does this java code work?
public static void main(String[] args) public static void main(String[] args) { int [][]shatner = new int[1][1]; …… -
Java – splits the list into sub lists according to the conditions of the stream API
I have a specific question There are some similar problems, but these problems are either Python or Java, or even if t…… -
The most lightweight Java collection
If I want to create a Java collection and just want to fill it with elements and traverse it (I don't know the necessa…… -
Java – button with rounded corners in Android
I want to create buttons such as the register and login buttons >Using shape drawable The results so far are not sa…… -
Java for loop problem
I'm making a java program to calculate Simpson's integral rules This is my code Note the second column of numbers in t…… -
Java – is an if else tree the best approach in the following situations?
What am I doing: I'm creating a simple calculator in Java that reads a string written in postfix notation (for example…… -
Java – is it possible to find out whether the value exists twice in ArrayList?
I have an integer ArrayList ArrayList <Integer> portList = new ArrayList(); I need to check whether I have enter…… -
Global sum error of multithreading in Java
I'm new to multithreading in Java. I made some code to see how it works I use global = 0 as the global int variable an…… -
How does the Java link list loop using the for loop?
Hello, I'm trying to create a for loop that iterates through the linked list For each data, it will be listed separate…… -
There are many if conditions in Java
I just started learning Java and have a very basic problem I have a label. I want to change the color when a random in…… -
Java – how to generate a unique ID on a web server cluster
In the following scenarios: 1 database 4 web servers How does the web server generate unique IDs for databases to make…… -
Storing DPI and paper size information in JPEG using java
I have the following code: ImageIO.write(originalImage,OUTPUT_TYPE,resultOutput); This is for the following javax imag…… -
Java – can I change the shape of JButton?
Can I change the shape of JButton from rectangle to circle? Solution I think this may be what you're looking for: http…… -
Java – hibernate or JPA?
When using spring 3.0, hibernate or JPA is recommended What are their advantages and disadvantages when used with spri…… -
Is there any way to make the constructor return a = = null object in Java?
I have a feeling that the answer is "no", but I think I'll ask just in case Pseudo code: Foo foo = new Foo(); if(foo …… -
AWT or swing for Java for GUI building?
I need to form a fairly simple GUI for the server monitoring process It will have tabs that can cause log tailing, res…… -
Java – how to avoid code duplication of many small classes?
I have different courses, including English, Spanish, French, etc Class English{ String name = "English"; Stri…… -
Concurrency – can I receive results from one of multiple goroutines in go?
I just learned about Google's programming language go I'm interested in the concurrency support it provides and set ou…… -
How to ensure that collections in Java contain only one type?
I want to make sure that the collection can only hold one type It can be said that there is such a method public Colle…… -
Suspend and resume the main thread in C for windows
I need to be able to pause and resume the main thread in Windows C applications I used it handle = GetCurrentThread();…… -
Use AutoCAD Library in Java to read DWG file?
Are there any open source Java or JavaScript libraries available for parsing DWG file and get objects from it I want t……