A meta-character is a characater that has special meaning to a computer program.
for example , in the regular expression engine:
A meta-character is a characater that has special meaning to a computer program.
for example , in the regular expression engine:
A sequential file contains records organized by the order where they are entered ,
the length of records and the order of records are fixed.
We need to use URLConnection class or HttpURLConnection class to set cookie.
The example is as below:
When we crawl the content from the URL , sometimes the process will become zombie and the task will
be stoped by some internet connection reason.
In File class , there is a method , mkdir() , which can be used to create directory.
The example is as below:
boolean success = (new File("directoryName")).mkdir();
if (!success)
{
System.out.println("Directory create failed!!");
}
In File class , it also has another method , mkdirs() , we can use this method if we want to create hierarchical directory .
for example:
This example will create two directory , one is datasets directory , and the other is class_2 directory.
String classNum = "datasets\\class_"+2;
How to retrun a two dimensional array ,
It is very simple in Java , we just need to set the return type as the same as the array tyep.
The range of ascii is from 0 to 255 ,
so a character is out of this range , we can say that this character is not a ascii.
javadoc is a tool in the jdk folder , it can help us transform the comment which was in program
to a documentation which was html style .
When we write many program , we also need to manage these program in order to avoid confuse.
Java has provide two method for us to manage these program , Package and Jar.
Sometimes , we may want to find word in string.
we can use string::find to achieve this purpose.
In this example , we want to tell you how to replace specific number of array.
Assume we have follow matrix , and we want replace 0 to -1 ;