Schlagwörter » Java

What are the popular data structures and algorithms

Hello Readers,

I have consolidated some important data about the popular data structures,  algorithms (search/sort).

Data Structures:






Heap (Priority Queue) 85 weitere Wörter

what is class path?

Class path is an environment variable, used by the java compiler and JVM to determine location of required class files.

Learn what is path in java ?


what is path in java?

Path is an environment variable, used by the operating system to find the executable like java.exe, javac.exe, javadoc.exe, and so on.

Learn what is class path ?


Create custom TrustManager with Spring

Previous article: Importing SSL certificate into JKS store

Sometimes we need to import custom key store (JKS) into our app. With this tutorial we will use Java configuration from Spring framework (from v4). 186 weitere Wörter


What a Good Java Development Company Needs to Have?

So, you have a project and you are now looking for a good Java development company to do the job for you. This could be one of the most difficult situations to be in. 544 weitere Wörter

Java Development的小東西

看A Developer’s Guide to the Semantic Web的時候,書上有一個例子透過Apache Jena寫一個agent針對裡的rdfs:seeAlsoowl:sameAs這樣把資訊都串起來。如果用瀏覽器開這個連結,在開發者工具會看到收到一個303,然後瀏覽器根據Response Header裡的Location設定再發一個HTTP Request要求。
用Java寫一個簡單的程式如下列片段,會發現會拿到的內容。就代表URL#openConnection()給我們的HttpURLConnection的實作版本會嘗試幫忙處理HTTP 3xx的redirect的狀況。

URL url = new URL("");
URLConnection conn = url.openConnection();

try (BufferedReader reader = new BufferedReader(new InputStreamReader(new BufferedInputStream(conn.getInputStream())))) {
    String line = reader.readLine();
    while(line != null) {
        line = reader.readLine();
… 574 weitere Wörter