school to write only two blog, Wang Ruiqiang from the beginning of the school has only been written once, Mao Provencale so far an article did not write. ”——1. The above classmates, if the weekend time is tense, did not have time to write, please hurry up in the week to fill the writing;2. Ma Lun, Mitch, Wang Ruiqiang, Mao Provencale, contact the teacher during class this week (Thursday or Friday)."Online answering, as in previous weeks, very few people ask questions, I guess because I am not u
This week the teacher explained the 14th chapter, and at the beginning the teacher gave a quiz on the content of last week's study. I got it. (1) Java creates threads in two ways: to create subclasses that inherit the thread class and to create classes that implement the Runnable interface; (2) Once a thread in Java is created, it cannot automatically start running, it must call the Start method, and (3) th
Unconsciously a semester also to the end, Java This course is also over. It's hard to understand when I first touched it. Once a class has been defined, it is not used. At first I didn't know how to define the methods inside the class, let alone the inheritance between classes and classes. There are interfaces, abstract methods, etc. that do not know how to use it. But in the back of the study, the process of programming for these things are also unde
This week, the teacher tuned the teaching goals, and in the Thursday class we explained in detail the knowledge that we didn't have in the programming that we left out in the last few weeks with our own code. Through the teacher's explanation, I do not have a part of the identity card process has been mastered. In the Friday class, the teacher focused on the Nineth chapter-the collection. The teacher begins by introducing a data structure-related knowledge, and then tells the part of the Legacy
a container are positioned by a layout manager. The only learning is:The button is placed in a JPanel object and managed with the Flow Layout manager (the default layout manager), the component is placed in the container, and the layout manager determines the location and size of the component in the container;Text fields and text area components are used to get text input, but there is a difference, that is, the Text field (JTextField) can only be entered in a single line of text, and the text
This chapter focuses on how to package a Java program as a runnable jar file. After compiling (Javac Filename.java), package (JAR-CVF Another.jar Filename.class) before running.Save the file directly by entering a file name, based on the attribute mappings. Use properties to load and save configuration information. The program uses preferences, giving the user the opportunity to export and import preferences, try resizing the window, restarting the ap
This is the last blog, I'm a little unsure how to write. From the beginning of the unaccustomed to the present a little do not want to end it. A semester of Time, the blog recorded my Java learning, but also let me to the knowledge of the grasp have a good understanding of my review has a great help, know where to focus on.This week, the teacher took everyone to the textbook in all of the knowledge points have been a summary of the explanation. Throug
20165318 2017-2018-2 "Java Programming" Eighth Week study summaryDirectory
Problems encountered in learning process and summary
Summary of learning contents of textbook
The 12th Chapter Java multithreading mechanism
Code Hosting
Code statistics
Problems encountered in learning process and summary
Q1: When runnin
After 3 weeks of Java class Learning, from the teacher's content, I still have a lot of problems, in doing the problem always feel will do, but do not come out, the understanding of the program is not thorough. We've been studying this week. The definition of a class consists of two parts: a declaration and a class body, which consists of two parts: one defining an instance field (or a member variable), and two being a method definition. The definitio
18th Week
2. About "error prompting before running the program" editor dose not contain a main type "program cannot run" view of the problem:This problem arises because the main class file is built under the compiler default access path, the class under build path can be compiled and run, the configuration file under Build path can be read and written directly by the class with relative path, the class package is not added t
the superclass method, and the other is to call the superclass constructor.3: If the subclass constructor does not explicitly call the constructor of the superclass, the superclass default constructor is called automaticallyThere is also a sense of polymorphism: polymorphism refers to the phenomenon that the same symbol in a program has different interpretations in different situations.: 2: A domain or method defined in a superclass, after which the quilt class inherits, can have different data
Fourth Week study summary
The experiment cemented the last experiment and summed up the problem, there are two ways to do this question, one is to keep the logarithm of 10, the remainder is saved in sum , and then left one position, until the remainder is zero. The other is to cast the number into a string array of s=string. valueOf (num) , the characters are separated according to the method S.tochararray (), and theUnicode code value is subtracted from the "x"-"0"=x x the value.
This week, we learned about generic programming and learned about the benefits of generic methods, which are that generic classes improve the type safety of Java programs, eliminate forced type conversions, and increase the reuse rate of code.A generic parameter type can use the extends statement to define the upper bounds of a generic variable, and the upper bound declared by the extends keyword can be either a class or an interface. Classes handled
name of the judge whether there is a number, the final result is always out, and then the name came out, score on the problem, I am powerless, the code results are as follows:for (int i = 0; i {if (Isdigist (Stu[i].getname (). CharAt (1))){System.out.println ("Illegalnameexception:the first char of name must not be digit, name=" + stu[i].getname ());Stu[i].setname (Stu[i].getname ());}Else{if ((Stu[i].getscore () > 0) (Stu[i].getscore () {System.out.println (Stu[i].tostring ());}Else{System.ou
This week's lab class learned about graphic programming, from framing to specific graphic printing, font settings, and other modifications to the framework. Through this week's program experiment I summed up the knowledge points:The 1.setSize method is inherited by the parent class component Class (the ancestor of the GUI object).2.pack () Call the preferred size of the framework component, or we can replace it with the SetSize methodThe 3.Swing class library is placed in the javax.swing package
2017-2018-2 1723 "Java Programming" course pair programming Exercises _ Arithmetic Group members
20172327 Marian
20172320 Li Shu
20172317 Shing
Demand analysis
Automatically generate problems
can be used independently (able to write the function of the test class to create a separate problem)
can generate different levels of problems
Different l
Learning the Java language for nearly four weeks, for the Java language, I also have a further understanding, out of the Java language love, I always like to be OK, I knock some very simple code, while learning the Java language, while contrast C language, often can help us to learn more
This blog post reference http://blog.csdn.net/qq_27093465/article/details/63683873, less go a lot of detours, hereby thankEnvironment:1,jdk1.8,2,maven3,3,TOMCAT8,4,idea2017.First create a MAVEN HelloWorld project, where Pom files and so on may be red, I do not control directly.Add a new model (here because iOS and Windows are no different, not yourself)just point to the next stepAfter project creation is completeEstimated some small partners to this place, hey, found that I have only one option,
This week, the teacher did not open a new curriculum, the first few weeks of the layout of the programming questions to answer, by following the teacher's ideas, found their own previously written code deficiencies, the program will not be written to have a certain grasp. But in the teacher let us extrapolate, their own writing a similar program when very difficult, error rate is high, knowledge messy, do not make the book knowledge into ability. And his own in the preview of the fifth chapter o
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.