java source code

Read about java source code, The latest news, videos, and discussion topics about java source code from alibabacloud.com

Java recommended readings and source code reading

Java recommended readings and source code readingJiangsu Wuxi Miuxiaodong1. Java Language BasicsWhen it comes to basic Java language Learning books, you will definitely recommend Bruce Eckel's "Thinking in Java". It is a very prof

Java Swing Gobang Source code and implementation of Java Development graphical interface program Gobang implementation mode

); */bufferedimage image = null;try {image = Imageio.read (new File ("e:/i") Mage/mldn text 01.jpg "));} catch (IOException e) {//TODO auto-generated catch Blocke.printstacktrace ();} G.drawimage (Image,0,0,this), G.drawoval ((), G.setcolor (Color.Blue), G.fillrect (+--), G.setfont ( New Font ("Arial", 40,40)); g.DrawString ("Gobang game", 20, 100);} public void mouseclicked (MouseEvent arg0) {//TODO auto-generated method stub}public void mouseentered (MouseEvent arg0) {/ /Todo auto-generated m

Given a source code file (. cs,. java), output the total number of rows in the file, the number of empty lines, the number of comment lines, the number of lines of code

(Line.endswith ("*/")) {comment = false; }} else if (Line.startswith ("//")) {commentlines++; } else {normallines++; }}} catch (IOException e) {e.printstacktrace (); }} catch (FileNotFoundException e) {e.printstacktrace (); } finally {if (BR! = null) {try {System.out.println ("blank line number : "+whitelines); System.out. println ("Number of comment lines:" +commentlines);

Java. util. concurrent package source code reading 05 BlockingQueue, java. util package

Java. util. concurrent package source code reading 05 BlockingQueue, java. util package Everyone must be familiar with the producer-consumer queue. The producer is responsible for adding elements to the queue. If the queue is full, it will be blocked until a consumer takes the elements away. On the contrary, the consum

[Java] detailed explanation of source code Java sends an email

It seems that the weather in Xi'an is difficult to get better, and the continuous moderate pollution is suffocating. No nonsense. This morning I wrote a Java mail sending service class. Let's look at the source code: Package Dec; import Java. util. properties; import javax. mail. message; import javax. mail. messaging

Real Data DES encryption using Java (Java source code)

Based on the analysis in the previous article "Introduction to Real Data Encryption Using DES (analysis)", Java can be used to encrypt strings, however, the legacy problem is that the string cannot be decrypted, because after the encrypted byte array is converted into a string, it will be different from the original byte array, and there will be fewer digits, I don't know why. Isn't a one-to-one conversion between a non-byte array and a string? Confus

Java. util. concurrent package source code reading 20 DelayQueue, java. util package

Java. util. concurrent package source code reading 20 DelayQueue, java. util package DelayQueue stores Delayed objects or child objects in an orderly manner. If an element is not removed from the queue, the object is returned only after the delay is exhausted. The so-called Delayed type inherits the Comparable interfac

Spring3.2 The bean definition based on annotation and Java code configuration method of source code analysis

Interpretation of source code based on Annotation configuration Bean Definition The first part of this series analyzes the source code of the Annotation-based Bean parsing portal As shown in Figure 2 above, the last Loop sequence diagram in the lower-right corner is the entry for the parse Bean for the Annotation c

Why does Java explain execution without directly interpreting the source code? __java

Original address: http://www.zhihu.com/question/34345694 Why does Java source go through the intermediate steps into bytecode, which is not to increase the workload. Directly interpret the source code across platforms as well. Why not explain the source

[Java Collection source code analysis] Java Collection framework

Reprint light indicated Source: http://blog.csdn.net/ns_code/article/details/35564663 The Java Collection toolkit is located under the Java. util package and contains many common data structures, such as arrays, linked lists, stacks, queues, sets, and hash tables. The Java Collection framework can be divided into the

Java source code analysis-JVM. dll Loading Process

Brief IntroductionJava.exe is the execution program of the Java classfile. An execution shell that loads JVM. dll (in windows, the following uses Windows as an example, Linux and Solaris are actually similar, for: libjvm. So), this dynamic Connection Library is Java The actual operation of the virtual machine. This document describes how the java. exe program fin

Java 2 source code: java. util. ArrayList

Download related source code:Java. util. ArrayListJava. util. AbstractListJava. util. ListArrayList is a variable-length array implementation of the List interface. All List operations are implemented and null values can be stored. Except for not synchronizing data, ArrayList is basically equivalent to Vector. Almost all methods are synchronized in the Vector, but the ArrayList only synchronizes writeObject and readObject. Other methods such as add (O

The Java API's source code cannot be viewed in eclipse

Briefly1. Mac OS (version 10.8) comes with jdk1.6 or JAVA6, but no source code. Mac OS comes with Java 6 which is released and updated by Apple, slightly different from Oracle's Java 6, such as No Rt.jar, instead of Classes.jar other details for reference http://my.oschina.net/hmj/ blog/799392. Oracle officially does n

A total of 18 Java code obfuscation and encryption open source software __java

obfuscation jscompressor Jscompressor, mainly used to compress, confuse JS (Javascript) and CSS, based on Yui compressor, the purpose is to facilitate unfamiliar Java or do not like the command line compression of Web developers to use. Functions: 1, can compress, confuse the entire directory (including subdirectories) under the JS or CSS files, in the same folder to generate *.min.js or *.m ... More jscompressor Information Last

The Java version of Mac OS and the JDK Source Code cannot be found in eclipse.

Document directory 1. How to query the local Java version? 2. Where is the Java Control Panel on Mac? 3. solve the problem that the source code cannot be found in eclipse. the JAR file/system/.../classes. Jar has no sourece attachment. 4. Modify the source

[Excellent] using encryption technology to protect Java source code

Use encryption technology to protect Java source code Content: 1. Why encryption? Ii. Custom Class Loader Iii. encryption and decryption 4. Application Instances 5. Notes Reference resources The source code of the Java program

Java object sorting, Chinese sorting, sortedset sorting usage, and source code explanation

here, reducing a lot of code. In this case, you do not need to write a comparator, so you can directly sort it. below is our test program: Import Java. util. arrays; import Java. util. collections; import Java. util. list; import Java. util. sortedset; import

Java tools: source code optimization and Analysis

Below is a list of some tools that can help you examine your Java source code for potential problems: 1. pMD from http://pmd.sourceforge.net/ License: PMD is licensed under a "BSD-style" License PMD scans Java source code an

Java source level annotation processing + byte code level annotation processing __ (3) core_java_advanced

class Beaninfoannotationprocessor extends Abstractprocessor 8.3) Compile the annotation processor and run Compile note Processor: E:\bench-cluster\cloud-data-preprocess\corejavaadvanced\src>javac com/corejava/chapter10_6/ Beaninfoannotationprocessor.java Run: E:\bench-cluster\cloud-data-preprocess\corejavaadvanced\src>javac- Processor Com.corejava.chapter10_6.BeanInfoAnnotationProcessor Com/corejava/chapter10_6/chartbean.java Result: You can then view the automatically generated Chartbeanbea

Java source code to C # five best tools

Java source code to C # five best toolsChszs, reprint need to indicate. Blog home:Http://blog.csdn.net/chszsFor some purposes, you may encounter the task of converting Java source code into C #

Total Pages: 15 1 .... 6 7 8 9 10 .... 15 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.