Google DevFest At Ho Chi Minh City
What: Google will be holding a DevFest in Ho Chi Minh City. Join us for a day of coding and fun, where we’ll cover topics ranging from OpenSocial & App Engine to YouTube & the Google Maps API.
Who: You! We’ll provide space, power, and refreshments. You just need to bring your own laptop, ideas and enthusiasm to complete the mix.
When: Tuesday November 4th, 2008 1:00PM-10PM
Where: University of Technology
RSVP for the Ho Chi Minh City event at here
Đoạn mã Java khá thú vị
Theo các bạn thì đoạn mã Java này có biên dịch được không? Không dùng bất cứ tool gì để compile trước khi trả lời nhé. Hãy dùng kiến thức về Java của các bạn để suy luận:
public class Quiz {
public static void main(String[] args) {
String Object = new String("Duy Do");
Object String = Object;
System.out.println(String);
}
}
Using Enum To Implement Singleton Pattern
In the previous post Singleton Pattern: When and How to use it effectively, we have 4 ways to implement Singleton Pattern. Today, I share with you another way to implement it with Enum. This way was provided by Joshua Bloch in his 2nd Effective Java book.
Read more »
Singleton Pattern: When and How to use it effectively.
(Từ bây giờ trở đi mình sẽ sử dụng tiếng Anh để viết các bài viết về kỹ thuật)
With this post I will show you what it Singleton Pattern and how to use it effectively.
First, consider definition for Singleton Patten:
The Singleton Pattern ensures a class has only one instance, and provides a global point of access to it.
From this definition we can see the purpose of using this pattern:
- It ensures we have at most one instance of a class in our application.
- It also provides global access point to that instance. We can access to that instance everywhere in our application.
And now, wen implement it, I use Java:
ByteTokenizer - a Java class util By Me
Vì nhu cầu để decode các gói tin của Yahoo Messenger nên mình viết thư viện ByteTokenize để sử dụng parse mảng các bytes (bytes array). Class ByteTokenizer tương tự như class java.util.StringTokenizer.
——————————————————————————–
In order to decode Yahoo Messenger packet received from Yahoo Messenger server, I’ve coded class ByteTokenizer, as java.util.StringTokenizer class. This class allows an application to break a byte array into tokens.
About
Duy Đỗ
Live in HCM, Vietnam.
Java is my favorite programming language.