passed to the reference of the outer object.
Third, object-oriented program design course study progress bar
Week
(read/write) Number of lines in code
Post Blog volume/comment blog number
classroom/After School time (hours)
Most satisfying programming task
first week
20/7
1/1
6/4
write Hello World program
second week
38/20
1/1
The second week ended quickly, I learned the new language of Java for two weeks, and the teacher's classroom was basically adapted. This week we learned about the Java Basic program design structure, which is basically similar to the C language I learned, like identifiers, keywords, annotations, and so on. Because of the basis of C, I learned this chapter is not too difficult.I learned something different from the C language, in terms of identifiers,
different, C input and output needs to import IO (standard input and output) function, Implementing the input in Java requires importing the Java.util package first, because the scanner class that constructs a scanner object is defined in the package, the output is not required, and the output only needs to call SYSTEM.OUT.PRINTLN.
There is a special class in Java that can be used with Java.math: BigInteger and BigDecimal, which satisfies the problem of insufficient integers and floating-poin
the Java program design. objects, methods and other content is an essential part of the general Java Program Design content, and practice more dozen code, will gradually understand its routines, so as to understand its use.Learning progress Bar
lines of code (new/cumulative)
Blog Volume (Add/accumulate)
Learning Time (new/cumulative)
Important Growth
, he is non-buffered.
Code HostingSentimentThe most important thing to learn a program language is more practice, first of all, even if you do not understand the code, can only look at other people's code to play, see more gradually will understand, at least understand the basic framework of the language, how to start, how to describe, what is the routine. After that, the program will be able to fully understand the meaning of the code.Learning progress Bar
Code lines
,bounceframe,bounce)
from Ball Class (new 2d ellipse, defined Move method)Ballcomponent Class ()The bounce program should be queued for the user's actions, the event will respond to the next, the program serial,The Bouncethread program, executed with thread threads, is defined as the thread, concurrency of the event response action in Addball
There are two ways to implement a synchronization mechanism:
1. Synchronize code blocks:
modify the source file
From + + Simple book + +
I am using the source of Tsinghua University:# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricteddeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricteddeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricteddeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universedeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universedeb http://m
1/4
10/10
Second week
300/500
1/5
10/20
Third week
800/1300
1/6
20/40
Week Four
700/2000
2/8
20/60
Week Five
1100/3100
2/10
30/90
Week Six
/
/
/
Seventh Week
Eighth Week
Reference: Why is it so difficult to estimate softwar
-system under Windows, so only the command line does not have a visual interface, such as the need for the interface to call third-party software, the situation can be viewed using virtual machine.
Issue 3: Compile XXX Complete, run is prompt: Exception in thread "main" java.lang.NoSuchMethodError:Student.
Problem 3 Solution: Prompt class with the same name in the same package or project, change the class name, save to run normally.
Code HostingLearning progress Bar
object of its own type. In the same package, the different classes defined in each program can be called between each program. You cannot have two classes of the same class name in the same package. A static method is a method that cannot manipulate an object, but it can operate on a static instance domain in the same class. Access-time class name. + static method name. A static domain belongs to a class that does not belong to any independent object. This is the property reference and this ()
this problem is: The main class file you have created is not placed under the compiler default access path, The workaround is to refactor the program's compilation path.A shallow copy and a deep copy are known after class through access to information. A shallow copy is a bitwise copy of an object that creates a new object with an exact copy of the original object's property values. If the property is a base type, the copy is the value of the base ty
the parent class to the type of the child class. In the parent class, if the abstract method is defined, the parent class must also be decorated with an abstract, and if the child class defines all the abstract methods in the parent class, the subclass may not be an abstract class. Conversely, subclasses are abstract classes. An abstract class can contain specific data and methods, or it can contain no abstract methods. By using a method name in a super.+ parent class in a subclass, you can cal
When you run a program with a package name on the book
WORKAROUND: There are two different programs in this package, compile Stu.java first, compile Example4_15.java, and then run Example4_15
Occurs when running a triangle class with a packageProgram for
Workaround: Create the appropriate folder for the name after the package, move the program into the folder, and run the compilation
When compiling a program, you can use thejavac-g-D. /.. /b
name is run compiled program. Integrated development environment in Eclipse, first select File--new project from the menu. Then select Java Project. Click the Next button, type the project name, and enter the full path name that contains the project name. Eclipse can be used to develop large programs. Java applets introduce dynamic interactive content into the WWW, and its bytecode must be embedded in HTML for interpretation by the WWW browser. There
This week we have been exposed to the Java object-oriented content, it is really difficult to tell the truth, a variety of new terms appear, and the relationship between the different words. Object-oriented programming and process-oriented programming have a great difference, to learn to change in thinking. This week, we learned about classes and objects, as well
What is a generic type? Generics are essentially called generic programming. Using generics means that the code you write can be reused by many different types of objects.Why use generics? Generics are a new way of programming, and program code written using generic mechanisms is significantly more obvious than the messy code that uses Object variables and then e
packages. When a source file, all of the class files in this package must be placed in a subdirectory that matches the package name .For a class, you can use all of the classes in its package directly, or you can use all the public classes from other packages.There are two ways to access classes in other packages:(1) The class name is preceded by the full package name; (2) Import a specific classEach week has new tasks and learning progress, but also
)Because this chapter is a part of the network programming in Java, it synthesizes the knowledge of threads and windows, and is more comprehensive. The idea of design is more comprehensive, experience the importance of basic knowledge, and the test in class, the experiment under the class is also more difficult. Hope to be able to persist in learning, and be able to regularly consolidate the previous knowledge, improve their Java
class name. Each class can have more than one constructor. The constructor can have 0, 1, or more arguments, the constructor does not return a value, and the constructor is always called with the new operation. Mastering the role of the constructor's API can learn to use the new symbol to design and generate a class object code.In the Friday experiment class, the teacher through a series of questions infil
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.