ArrayList<Integer> list = new ArrayList<Integer>();
list.add(1);
list.add(2);
list.add(3);
list.remove(1);
System.out.println(list);
Monday, November 22, 2010
[Java] What will be printed to a console?
Thursday, November 18, 2010
Note for starting new Eclipse workspace
- Import Formatter.
- Customize Save Actions.
- Set text editor "spaces for tabs" and "displayed tab width".
- For MacOSX, change "Content Assist" short-key.
- Set content assist to help import favorite static members.
Monday, November 1, 2010
[Java] Jars inside Jar
Jar that contains multiple jars inside is not support directly by Java. There are some workarounds on this.
Java: Easiest way to merge a release into one jar-file
Is it possible to package all the jar dependencies in one big jar ?
- Put jars in to jar as ordinary files then load them with your own customized classloader. There is a tool such as One-JAR™ but some people told that it causes performance problem (I have not try this).
- Extract jars to .class and pack them together to a single jar. You can archive this easily with Ant's Zip Task
Java: Easiest way to merge a release into one jar-file
Is it possible to package all the jar dependencies in one big jar ?
Subscribe to:
Posts (Atom)
Collectd PostgreSQL Plugin
I couldn't find this link when searching with google https://www.collectd.org/documentation/manpages/collectd.conf.html#plugin-postgresq...
-
sudo su postgres supply your Mac password modify /Library/PostgreSQL/9.x/data/pg_hba.conf from local all all md5 to local all all ...
-
Put your cursor on the text box of the post/comment you want to indent Go to the menubar at the top of the screen Edit > Emoji & ...
-
I ran to this error the other day when I tried to export a dump file from a slave Postgres database. cpg_dump: Dumping the contents of ta...