static void Main (string[] args) {System.out.println ("Please enter 3 integers:");Scanner s = new Scanner (system.in);int a = S.nextint ();int b = S.nextint ();int c = S.nextint ();if (a > B) {if (a > C) {System.out.println ("The largest number is" + a);} else {SYSTEM.OUT.PRINTLN ("Maximum number is" + C);}} else {if (b > C) {SYSTEM.OUT.PRINTLN ("Maximum number is" + B);} else {SYSTEM.OUT.PRINTLN ("Maximum number is" + C);}}}}This article is from the "Kun" blog, please be sure to keep this sour
BorderLayout Sub-east, the default is the layout of the frame
FlowLayout is the default layout for the panel
GridLayout is a grid layout! You can specify the number of meshes when instantiating a grid layout object
The panel must be added to a container to be displayed!
An event is an object that describes what happened, and these objects are provided by AWT, such as left-click to produce a ActionEvent object
The event source is a component of the event that occurs, such as clicki
85-The inner class is divided into 4 kinds
Static Inner class
Inside a class, a class decorated by the static keyword is called a static inner class, and its inside can only access static members and methods of the outer class! After compiling, an external class $ inner class is generated. class file that instantiates an inner class object when an external class. Inner class inner= new external class. Inner Class ()
member Inner class
defined in an external class
For Java and PHP training, you have to choose Chengdu Chuanzhi podcast for nine reasons:
1. if you have the power and are not afraid of dazzle, we love to write an open-source project.
2. lead the new technology and let our students stay at the forefront of others. they are the first to launch Hadoop, Unity3D, and Nginx.
3. the course has a wide range of knowledge and profound and easy-to-understand tech
Java training notes (8)-MYSQL
Today, we will first explain the functions, which are mainly divided:
1. Aggregate functions
2. String Functions
3. Date Functions
4. mathematical functions
Aggregate Function: A value is generated after a group of values are calculated.
Common functions include:
Function Name
Function meaning
Count ()
Count non-empty rows
Max (), min ()
Ma
("Yes, good Yo");Case 2:Case 3:Case 4:Case 5:Case 6:Case 7:Case 8:Case 9:Default:System.out.println ("Wow, high salary yo");}}else if (GJ > 2000){int b = gj/1000;Switch (b){Case 2:Case 3:Case 4:system.out.println ("Hi, eat noodles");Case 5:Case 6:Case 7:Case 8:Case 9:system.out.println ("Oh, can Survive");}}Else{System.out.println ("Water only");}}}3. Enter the year and month you want to query from the keyboardOutputs the number of days in the corresponding month, and calculates the total numbe
3. Three mesh operation: three-dimensional expressionConditions? Result 1: Result 2a>b?a:b//If A>B is established, the result is a, otherwise the result is BExactly what type of a and B output:public class Task {public static void Main (string[] args) {char a = ' B ';int B = 8;System.out.println (FALSE?A:B);//8System.out.println (False?a:8);//characterSystem.out.println (false?8:a);//bSystem.out.println (false?b: ' a ');//97System.out.println (TRUE?A:B);//97System.out.println (true?a:8);//bSyste
any one of the standard strings A return false; at } - return true; - } - - Public Static voidMain (string[] args) { - inString s= "072050030";//match with the required string - //The form of all possible matrices is represented by a string toString[] SS ={//rotation produces 4 kinds, mirror produces 4 kinds, total 8 kinds +"492357816", -"834159672", the"618753294", *"276951438", $ Panax Notoginseng"294753618", -"438951276", the"816357492", +"672159834
Description of the problem every winter, the North Lake is a good place to skate. Peking University sports team prepared a lot of skates, but too many people, every afternoon after the day, often a pair of skates are not left.Every morning, rental shoes window will be lined up long, fake with shoes of M, there is need to rent shoes n. The question now is how many of these people have a way to avoid embarrassing situations where the sports Group has no skates to rent. (Two people who have the sam
1 people can be sent to the E country.A maximum of 3 people can be dispatched in F countries.So how many different combinations of the country will eventually be sent to the W-Star's Observer mission?Title (iv)A string of known different letters, to make its full arrangementTopic (v)There are repeated letters to remove all combinations of MFor example: "AAABBCCCCCCDD" to take all combinations of 3 lettersTitle (vi)A a 2 2 3 3 4 4, altogether 4 pairs of poker. Please line them up.Requirements: T
[] args) {Int[][] a={{5,4},{3,2},{9,7}};ArrayList ArrayList = new ArrayList ();Traverse a two-dimensional array and put the results into the container ArrayListFor (int[] b:a) {for (int i:b) {Arraylist.add (i);}}Collections.sort (arrayList); Sort the elements in ArrayList in ascending orderIterate through the sorted ArrayList and output the elements individuallyfor (int j:arraylist) {System.out.print (j);if (J==arraylist.get (Arraylist.size ()-1)) {Break}System.out.print (",");}}}2.HashMap make
equals () and hashcode ();Equals (): is only responsible for comparing the values of two objects for equality;Hashcode (): Determines whether two objects point to the same object (reference) and returns a hash code value;
Map Interface:Key cannot be duplicated;Implementation class: HashMap, TreeMap, Linkedhashmap;Common methods:Put (Object K,object v);Get (Object key);//Returns the value mapped by keyContainsKey (Object o);//Determines whether the given element o is contained in the container
//The request for this problem is not recursive and will time out.4 //Public static void Main (string[] args) {5 //Scanner Scanner = new Scanner (system.in);6 //int m = Scanner.nextint ();7 //int sum = f (m);8 //System.out.println (sum%10007);9 // }Ten //public static int f (int n) { One //if (n==1| | n==2) { A //return 1; - //}else - //return F (n-1) +f (n-2); the // } - - - + Public Static voidMain (string[] args) { -Scanner Scanner =NewScanner (system.in); +
ChuanzhiArticleRecord:
After 10 years of training Java learning roadmap (with a full set of tutorials) http://edu.csdn.net/heima/heimaline.html? FST Android development confidential tutorials http://edu.csdn.net/heima/video/androidVideo.html? Fstjava basics http://edu.csdn.net/heima/video/javase_bxd.html? Fstjava high-tech http://edu.csdn.net/heima/video/javase_zxx.html? FST Fang lixun java
Title DescriptionThe radius of the given circle R, to find the area of the circle.Input formatThe input contains an integer r that represents the radius of the circleOutput formatThe output line, containing a real number, rounded to retain 7 digits after the decimal point, indicating the area of the circle.Description: In the subject, the input is an integer, but the output is a real number.For the real output of the problem, please be sure to see the real output of the requirements, such as the
Course Catalogue:Database performance optimization (111-116)Data layer processing and Performance Optimization section (99-110)Logic layer processing and Performance Tuning section (51-98)High concurrency and performance optimizations for the Web Tier section (24-50)Distributed Architecture and Deployment section (1-23)Stage two course outline. docxSenior Architect two source courseware. rar:Baidu Network Disk DownloadAdvanced Java System
Chapter Ten
Open Source Framework
Outline of this section
Open source framework for use, such as Imageloader,google volley,androidannotation
Deep analysis of internal principles
Customize your own Open source framework (decide not to do tools-only developers)
Chapter IV
Ndk
Outline of this section
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.