Time of Update: 2017-04-06
標籤:生活 code while迴圈 string sys imp 機構 ack inpu 淺談java中迴圈結構之一——————while的簡單應用1、什麼是迴圈?有時您希望代碼在工作完成之前
Time of Update: 2017-04-05
標籤:cache 線上 任務隊列 dev cpu tor 替代 簡單 協議 線程池的定義線程池是一種多執行緒形式,處理過程中將任務添加到隊列,然後在建立線程後自動啟動這些任務。線程池線程都是後台
Time of Update: 2017-04-05
標籤:nbsp 容器 span 介面 path 擷取對象 管理 為什麼 actor 為什麼說我們這篇文章只是說瞭解一下BeanFactory。因為BeanFactory內在的機制與代碼實現實在是
Time of Update: 2017-04-06
標籤:java 多檔案上傳 非控制項 spring springmvc 最近項目用到的,實現多檔案以及一些資訊上傳,以及後台接收及讀取用到了spring及springmvc相關架構。不多說廢話,直接上例子(這有關鍵代碼) 首先,前台頁面<form action="/uploader/upload/upl
Time of Update: 2017-04-04
標籤:out 解決 執行個體 掃描 記憶體回收行程 關聯 記憶體 實現 引用 Java 中有四種引用:強引用、軟引用、弱引用、虛引用; 其主要區別在於記憶體回收時是否進行回收: 1.
Time of Update: 2017-04-04
標籤:語句 ase 輸出 http pow 預設 system 支援 迭代 方法:是一段完成特定功能代碼的片段。格式: [修飾符1 修飾符2 ......]傳回值類型
Time of Update: 2017-04-04
標籤:print 個數 char sgd oid tor [] bsp add 用while迴圈計算100之內的奇數和偶數和public class Test{public static
Time of Update: 2017-04-04
標籤:pre read java多線程 size text 利用 ble 使用 實現 java中多線程的實現方法有兩種:1.直接繼承thread類;2.實現runnable介面;同步的實現方法有
Time of Update: 2017-04-04
標籤:can class == 使用 ring public put image 分享 思路:這道題用HashMap來儲存枚舉的字串,key值儲存字串-value值儲存字串所出現的次數;&nbs
Time of Update: 2017-04-05
標籤:名稱 啟用 orm freemark intel 引擎 檢查 idea 使用 1.屬性配置使用版本,winzip解壓版,開發工具安裝目錄下idea.properties檔案,自訂配置路徑#
Time of Update: 2017-04-05
標籤:資料 print div select his cat ice 初始化 資料查詢 這一節我們介紹一下Spring架構的相關常用配置Spring依賴注入的兩種方式(構造方法注入和setter
Time of Update: 2017-04-06
Struts2_用Action的屬性接收參數,struts2接收參數先在 Action 中定義要接收的屬性,需要編寫屬性的getter 和 setter 方法struts2 會自動幫我們把 String 類型的參數轉為 Action 中相對應的資料類型。 1 private String userName; 2 3 private int userAge; 4 5 public String add(){ 6
Time of Update: 2017-04-06
Java WebService學習資料,webservice學習資料 最近用到了WebService,以前沒用過,想要好好學習一下。感覺網上資料比較少,而且很雜,找了很久,覺得下面的兩個文章解釋的比較清楚,分享一下: WebService概念、原理:http://mp.weixin.qq.com/s/C3wiFIsfYWWuri5PrYp3DQ Java
Time of Update: 2017-04-06
Spring
Time of Update: 2017-04-06
Struts2_用DomainDriven接收參數,struts2接收參數通過實現 DomainDriven 介面來接收請求參數,這種方法用的比較少,一般還是用前兩種。請求: 1 <a href="user/user!add?name=xiaoer&age=33">添加使用者</a> User類: 1 package com.bjsxt.struts2.user.model; 2 3 public class User { 4
Time of Update: 2017-04-05
Hibernate原理、配置及單表操作,hibernate單表一、Hibernate的配置文檔 其中:hbm2ddl.auto中的create表示每次修改資料的時候都會刪除原有的表,產生新的表結構,原有的資料不再存在;update表示在原有資料的基礎上進行更新,不會刪除原有的資料。
Time of Update: 2017-04-05
多線程的一些小Demo,多線程Demo一、多個線程單個鎖package com.sun.multithread.sync;public class MyThread extends Thread { private int count = 5; // synchronized加鎖 public synchronized void run() { count--; System.out.println(this.currentThread().
Time of Update: 2017-04-05
數群組轉換為集合進行排序,集合、數組自訂排序,數組自訂數群組轉換成集合,sort方法進行排序Integer[] nums = { 23, 16, 12, 58, 11 };// 集合轉換為數組List<Integer> numList = Arrays.asList(nums);Collections.sort(numList);// 排序之後for (Integer num : numList) { System.out.print(num +
Time of Update: 2017-04-05
java冒泡排序和快速排序代碼,java冒泡排序冒泡排序:基本思想:在要排序的一組數中,對當前還未排好序的範圍內的全部數,自上而下對相鄰的兩個數依次進行比較和調整,讓較大的數往下沉,較小的往上冒。即:每當兩相鄰的數比較後發現它們的排序與排序要求相反時,就將它們互換。public class BubbleSorted{ public BubbleSorted(){ int a[]={49,38,65,97,76,13,27,49,78,34,12,64,5,4,62,99,98
Time of Update: 2017-04-05
也談談我面試的經曆,面試經曆