Recent Posts
-
Notes: Lecture 2 basic knowledge of Java language
summary: 4. Floating point (real) data real constant: ◇ decimal number form consists of numbers and decimal points, an…… -
JSP from simple to deep (4) — scriptlets
In the above tutorial, we have learned how to embed Java expressions between <% = and% > character series in JSP…… -
JSP from simple to deep (10) — beans and forms processing
Forms is a very common way to interact on websites. JSP makes form processing easier. The standard way to process form…… -
JSP from simple to deep (3) — adding dynamic content through expressions
In our previous chapters, any HTML file can be transformed into a JSP file by changing its extension to jsp。 Of cours…… -
There are two ways for HashMap traversal. Entryset() is recommended
Map map = new HashMap(); Iterator iter = map.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry…… -
Under tomcat, select context Configuring various database connection pools (JNDI) in XML
Tomcat6的服务器配置文件放在 ${tomcat6}/conf 目录底下。我们可以在这里找到 server.xml 和 context.xml。当然,还有其他一…… -
Prevent pages from being embedded in iframe
if (window != top){ top.location.href = location.href; } -
Wildcards T, e, K, V,? Winter anthracene
In essence, these are wildcards, no difference, but a conventional thing in coding. For example, we can replace t in t…… -
Java – there can be more than 32 locks in the concurrenthashmap
I read that concurrent HashMap is better than hashtable in terms of multithreading, because it maps wide locking at th…… -
Java’s RAM usage does not correspond to what the task manager says
I play the Java JVM by making 1024 ^ 3 (basically 1GB) byte arrays Before using the task manager (viewing the process)…… -
Java – how to find the length of a group?
I tried to find a set of lentgh from my preferences set = prefs.getStringSet("key",null); int X = set.leng…… -
Java – I can have different copies of static variables for each different type of inheritance class
I want the same static variable with different values, depending on the type of class So I will public class Entity { …… -
Java close PDF error
I have this java code: try { PDFTextStripper pdfs = new PDFTextStripper(); String textOfPDF = pdfs.getText(PD…… -
Java – why use constants instead of enumerations?
I have seen the use of many constants in many Java libraries, in which enumerations can be easily used Even in swing, …… -
Java – numberformatexception when converting from string to byte
Something strange happened to me I have a binary number in string form, especially "01001100" But I get the above exce…… -
FileNotFoundException when using java properties file
I asked this question after doing a lot of research, and implemented it in my code after research, but I finally got F…… -
Assigning operators in Java
I have two ArrayLists in Java: mProductList = new ArrayList<ProductSample>(); mProductList2 = new ArrayList<P…… -
Java – setonpagechangelistener does not call onpageselected
I set up a simpleonpagechangelistener using the following example: Android SimpleOnPageChangeListener – Determine swip…… -
The pre allocated private STD:: vector in OpenMP is parallelized into a loop in C
I'm going to use the buffer STD:: vector < size_ t> Buffer (100), one in each thread of loop parallelization, as…… -
Java – specify the variable name in the query where clause in JDBC
Someone can give me a link about how to create a query in JDBC. The query obtains the variable name in the where state…… -
Java – how do I create a JList that contains hashtable entries for strings and objects?
I want to create a JList that contains entries for hashtable of string and object: Hashtable<String,Object> The …… -
Learning legacy Java systems
My task is to maintain and refactor the legacy @ L_ 502_ 0 @ system I'm currently doing c# and C Net, although I am fa…… -
Java – when security is enabled, launching WebSphere from eclipse hangs
I have a WebSphere Application Server 8.0 0.6, which is installed as part of rad I need to run the server from eclipse…… -
Java – what is used by < > and what is its name?
I was working on some sample code, and then it came up: public abstract class RandomPool<T> extends Pool { …… -
Java – what’s wrong with this thread safe byte sequence generator?
I need a byte generator that will generate from byte MIN_ Value to byte MAX_ Value When it reaches Max_ Value, it shou…… -
Java – add values to terms in the map
I'm trying at @ L_ 403_ 0 @ to add a specific value to the map, where the key is very complex, but the value is a simp…… -
Java – syntax errors on tokens. Delete these tokens
This is the code I provided for the problem package ca.rhinoza.game; import java.awt.BorderLayout; import java.awt.Ca…… -
Super cannot be the first line constructor in Java when solving the problem
I'm using the csvreader class, which takes local files as input But now, I need to be able to read local files and fil…… -
Java – how to make a method take any type of array as a parameter?
I want to be able to take any array type as an argument in the method: public void foo(Array[] array) { System.out…… -
How can I pixelate JPG with Java?
I'm trying to pixelate JPEG using java 6 and I don't have much luck It needs to work with Java - not an image processo…… -
Java – print and access lists
I am reading the file and storing it in T1 How do I access elements in T1? When I try to print it, I get an address in…… -
Java – how to lighten or darken bitmaps
For example, how do I get an existing bitmap Bitmap bm = BitmapFactory.decodeResource(getResources(),R.drawable.somebi……