File and disk operation technology in Java

1 How do I get a list of files in a directory? File MyDir = new File("C:/Windows/."); String[] FileNames = MyDir.list(); 2 How do I implement an open file or a storage file dialog box? Awt:filedialog class + FilenameFilter class

Basics of Getting Started with Java beginners

First, the JDK is j2se,jdk1.1.8 version after the change to become J2SE, Download Address: http://java.sun.com/j2se/downloads.html Second, the JRE is the Java Runtime Environment (after the jdk1.3 version contains JRE) do not have to download

Implementing "web Spider" with Java programming

Brief introduction "Web Spider" or "web crawler", is a kind of access to the site and track links to the program, through it, can quickly draw a Web site contains information on the page map. This article mainly describes how to use Java

State mode of Java EE design pattern

Design pattern, this concept is now flying, we all have estimates in hand, Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides, in the book ment of re-useable object-oriented Software ", this book. According to the argument, there are three

Java IO Learning (19) Pipedreader and PipedWriter

In this chapter, we study Pipedreader and PipedWriter. Like "PipedInputStream and PipedOutputStream", they can be used for pipe communications. PipedWriter is a character pipeline output stream that inherits from writer. Pipedreader is a character

Java Web Learning (i) Tomcat's first attempt

Tomcat is a set of Open-source software developed by Apache Software Foundation (ASF) for implementing Java Servlet and JavaServer Page (JSP) technology. Tomcat is what the male cat means. In O ' Reilly's animal book, the cat has been used as the

Non-direction graph of adjacency matrix (iii) Java detailed explanation

An introduction to the non-direction graph of adjacency matrices The non-direction graph of adjacency matrix refers to the graph represented by adjacency matrix. The above figure G1 contains "a,b,c,d,e,f,g" a total of 7 vertices, and contains

Java: Developing portlets with JSF, Ajax, and seam (3/3)

In the first and second articles of this series, I explained what is Portlet Bridge? and how to install and use it in a basic JSF and richfaces (Ajax) Portlet, and the main differences that currently support portal servers running JBoss Portlet

Java Overlay and overload

Now let's look at the first example of this chapter with a different perspective. In the following program, the interface of method play () will change in the process of being overwritten. This means that we actually do not have the "overlay"

The polymorphism of Java

For object-oriented programming languages, polymorphism is the third most basic feature (the first two are data abstraction and inheritance.) ” "Polymorphism" separates the interface from the concrete implementation details from another angle, i.e.,

Java Compression class

zip

Java 1.1 also adds a class to support reading and writing to data streams in compressed format. They are encapsulated into off-the-shelf IO classes to provide compression capabilities.One of the problems with Java 1.1 is that they are not derived

Java class regeneration

"One notable feature of Java is the reuse or regeneration of code." But what's most revolutionary is that there are other things we can do much more than copy and modify the code. ” In programmed languages like C, the reuse of code is already

The type of Java OutputStream

The classes included in this category determine where our input goes: A byte array (but no string; Suppose we can create one with a byte array);A file, or a "pipe".In addition, Filteroutputstream provides a base class for the "spoiler" class, which

Java Rules Initialization

What happens if you want to assign an initial value to a variable? One of the most straightforward ways to do this is to define variables within a class and assign values to them (note that this is not possible in C + +, although beginners in C + +

Java Code of violations

In Java, for client programmers who want to invoke methods, we want to inform them that they may "throw" the offending in their own way. This is a polite way to make it possible for the client programmer to know exactly what code to write to capture

Java Looping statements

While,do-while and for control loops, sometimes dividing them into "repeating statements." Unless the Boolean expression used to control the recurrence gets the result of "false", the statement is executed repeatedly. The while loop is formatted as

Can Java inner classes be overwritten?

What happens if you create an inner class and then inherit from the encapsulated class and redefine the inner class? In other words, is it possible for us to overwrite an inner class? This may seem like a very useful concept, but "overwrite" an

Introduction to Java Syntax (vii): Brake and label

1:break The break statement provides a convenient way to jump out of a loop. boolean test=true;   int i=0;   while(test){    i++;    if(i>=10) break;} When you execute this program, the full loop runs only 10 times, although the while condition

Using Stripes to do Java Web development

Summary:Stripes is an action-based open source Java Web Framework designed to make the programmer's web development simple and efficient. This article will introduce the difference between stripes and other role-based frameworks such as struts and

Using VC + + components in Java

Introduced JNI is my favorite Java programming framework; it gives you the freedom to use locally written code. For example, if you want to use the Windows API (as a DLL) in your Java program, then you need to use JNI. The most popular feature of

Total Pages: 6206 1 .... 5743 5744 5745 5746 5747 .... 6206 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.