PIXNET Logo登入

經驗交流分享與備忘

跳到主文

感情最痛恨 劈腿. 背叛 與 欺騙

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 3月 11 週三 201519:45
  • [轉貼] 在 Ubuntu Linux 安裝 Android Studio

Quick tutorial shows you how to install Android Studio, a new Android development environment developed by Google and based on IntelliJ IDEA, via PPA in Ubuntu 14.10, Ubuntu 14.10, Ubuntu 12.04 and the next Ubuntu 15.04.

Similar to Eclipse with the ADT Plugin, Android Studio provides integrated Android developer tools for development and debugging.
On top of the capabilities you expect from IntelliJ, Android Studio offers:
(繼續閱讀...)
文章標籤

本熊 發表在 痞客邦 留言(0) 人氣(3)

  • 個人分類:Java程式設計
▲top
  • 5月 15 週二 201214:52
  • [原創] 如何知道某個字元在一串文字裡出現幾次 - Java

如何知道某個字元在一串文字裡出現幾次 ?

public static int NumberOfKeywords(String strKeywords, String strkey){
int spcount =0;
String strTmp = "";
for(int j=0;j<strKeywords.length();j++){
strTmp = String.valueOf(strKeywords.charAt(j));
if(strTmp.equals(strkey)){
spcount++;
}
}
return spcount;
}
(繼續閱讀...)
文章標籤

本熊 發表在 痞客邦 留言(3) 人氣(5,568)

  • 個人分類:Java程式設計
▲top
  • 3月 28 週三 201217:00
  • [轉貼] How to detect IE version using JavaScript

The following JavaScript is used to detect the Internet Explorer version 8, 7 or 6. It’s returned -1 if the browser is not Internet Explorer.

function getInternetExplorerVersion()
// Returns the version of Windows Internet Explorer or a -1
// (indicating the use of another browser).
{
var rv = -1; // Return value assumes failure.
if (navigator.appName == 'Microsoft Internet Explorer')
{
var ua = navigator.userAgent;
var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
if (re.exec(ua) != null)
rv = parseFloat( RegExp.$1 );
}
return rv;
}
function checkIEVersion()
{
var msg = "You're not using Windows Internet Explorer.";
var ver = getInternetExplorerVersion();
if ( ver> -1 )
{
if ( ver>= 8.0 )
msg = "You're using Windows Internet Explorer 8.";
else if ( ver == 7.0 )
msg = "You're using Windows Internet Explorer 7.";
else if ( ver == 6.0 )
msg = "You're using Windows Internet Explorer 6.";
else
msg = "You should upgrade your copy of Windows Internet Explorer";
}
alert( msg );
(繼續閱讀...)
文章標籤

本熊 發表在 痞客邦 留言(0) 人氣(1,204)

  • 個人分類:Java程式設計
▲top
  • 3月 15 週四 201222:10
  • get Minimum or Maximum value in Java array

Q: How to get Minimum or Maximum value in Java array?
A: 

public static int getMaxValue(int[] numbers){
(繼續閱讀...)
文章標籤

本熊 發表在 痞客邦 留言(0) 人氣(318)

  • 個人分類:Java程式設計
▲top
  • 2月 12 週日 201202:34
  • [Java] 取得螢幕寬度

Java如何取得營幕寬度? 

import java.awt.Toolkit;
import java.awt.Dimension;
Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
(繼續閱讀...)
文章標籤

本熊 發表在 痞客邦 留言(0) 人氣(1,329)

  • 個人分類:Java程式設計
▲top
  • 12月 22 週四 201111:53
  • [轉帖] What does Object<String> signify in Java?

Question:
I'm new to Java but not to programming (I normally code in Ruby). One thing I've seen in Java code examples is the use of <> instead of () to pass params to an object. Below is a code example (taken from a Google Web Toolkit tutorial):

publicvoid onValueChange(ValueChangeEvent<String> event){
   
String token = event.getValue();
   
// depending on the value of the token, do whatever you need
   
...
}
(繼續閱讀...)
文章標籤

本熊 發表在 痞客邦 留言(0) 人氣(62)

  • 個人分類:Java程式設計
▲top
1

參觀人氣

  • 本日人氣:
  • 累積人氣:

文章分類

toggle 作業系統相關 (9)
  • FreeBSD (8)
  • IPv6 Logo (2)
  • Visual C# (1)
  • Visual C# (1)
  • Mac使用心得 (5)
  • Synology NAS應用 (0)
  • 系統應用 (49)
  • 防毒防駭 (5)
  • 系統安裝 (30)
toggle 投資理財 (2)
  • 科技產業 (8)
  • 投資學習 (9)
toggle 網頁設計相關 (6)
  • Flex程式設計 (5)
  • MySQL資料庫 (13)
  • ASP.NET程式設計 (1)
  • CSS樣式表應用 (5)
  • Flex (1)
  • PHP程式設計 (51)
  • Perl 程式設計 (1)
  • Windows系統應用 (2)
  • 好書推件 (1)
  • Android程式設計 (10)
  • C程式設計 (2)
  • Linux相關應用 (18)
  • Java程式設計 (6)
  • JAVAt程式設計-GWT (7)
  • Eucalyptus XEN (2)
  • 喻道故事 (1)
  • 下載資源 (2)
  • 終生學習 (7)
  • Goolge 新玩意 (1)
  • 英文學習心得 (3)
  • 工商服務 (12)
  • 勵志成長 (18)
  • 新聞時事 (17)
  • 讀者服務 (3)
  • JavaScript (22)
  • 省錢大作戰 (15)
  • 搶錢大作戰 (2)
  • 趣味分享 (50)
  • 感情生活 (15)
  • 用DSLR寫日記 (20)
  • 程式設計 (7)
  • 職場人生 (16)
  • 健康生活 (63)
  • 未分類文章 (1)