java move/copy file code.

Java Instance and Local Variable Objects


July 25, 2008   Java — Tags: , , , — 52coding   

Instance variable objects (objects declared at the class level) have a default value of null. null references nothing.Local variable objects (objects declared within a method) do not have a default value, not even a value of null. Always initialize local objects because they are not given a default value.

import java.util.regex.*;
public class MatchPhoneNumber{
public static void main(String args[]){
isPhoneValid(args[0]);
}

Java playing MIDI music


July 5, 2008   Java — Tags: , , — 52coding   

Java in multimedia processing advantages of small, but we have procedures in some cases also need some music as embellishment. If play wav file, and big, so MIDI as background music is the best. But many play MIDI  tutorials are simple examples of a few words, and did not consider the issue of the release of resources. If the program long run, there will be more consumption of the memory of the situation, even dished out a final java.lang.OutOfMemoryError.

In-depth understanding of Java String


July 5, 2008   Java — Tags: , , , — 52coding   

First, I propose to look at the String type of source to achieve this is in essence String understanding of the fundamental starting point type. Which can be seen:
     1, String class is final and can not be inherited. public final class String.

Page 1 of 11