How data in the foreground JSON format is passed into the background1. Assemble the data that will be in the background into a JSON-formatted string:varJsonstr = [{'name':'Jim',' Age': -} , {'name':'King',' Age': -},{'name':'Jge',' Age': -}]2. Ajax
Topic:Given a binary tree, return the inorder traversal of its nodes ' values.For example:Given binary Tree {1,#,2,3} , 1 2 / 3Return [1,3,2] .Train of thought: In the topic, the rule uses the loop instead of the recursive solution,
Scene One: Image size unchanged, modify picture file type use:thumbnails.of ("F:\\image\\img_20131229_114806.png") . Scale (1f). OutputFormat ("jpg"). ToFile ("f:\\image\\output\\img_20131229_114806");Note:OutputFormat: The picture format of the
java,20 years old. Since I wrote the first line of Java code, so far has been more than 10 years, seeing java--this year just found their own growth direction of the ignorant teenager, grow into now well-deserved industry king. It already has the
Problem Solving Ideas:Middle sequence traversal, Zuozi-root node-right subtreeThe Java implementation is as follows: Public list inordertraversal (TreeNode root) { list List = new Arraylist (); if (root==null) return list;
Given a string containing only digits, restore it is returning all possible valid IP address combinations.For example:Given "25525511135" ,Return ["255.255.11.135", "255.255.111.35"] . (Order does not matter)Problem Solving Ideas:Use loops to solve,
Request (need to send data to someone else):URL url = new url ( request URL connection required) );HttpURLConnection httpconnection = (httpurlconnection) url.openconnection ();// in POST or GET mode communication Conn.setrequestmethod
Usually use E.getmessage () or e.printstacktrace ();The first kind of the exception to throw the new RuntimeException ("Exception"), can only get an exception of 2 words.The second type of e.printstacktrace (); Just prints and does not return any
Tag:java thread pool Package com.letv.lazybox.task;/** A number of participants in the race race, each group has a different length of the whole number of meters, the total duration of the game, if the athletes do not complete the race in
Mybatis3 autoMappingBehavior, mybatis3
Reprinted Please note:TheViper http://www.cnblogs.com/TheViper
AutoMappingBehavior is a property that is easy to ignore.
As you can see, the default value is PARTIAL, which only automatically maps the result
Java multithreading knowledge point, java Multithreading
The following is my knowledge point on multi-thread recording. I didn't explain each knowledge point in detail. I just recorded the important knowledge points. If you have time, you can check
Java basic notes-exception, Java basic notes-
Java exception mechanism:
The Throwable class is a superclass of all errors or exceptions in the Java language. It mainly includes two subclasses: Error and Exception.
The Exception to be processed is
BasicDataSource configuration parameter.
Parameters
Description
Username
User name passed to the JDBC driver for connection Establishment
Password
The password passed to the JDBC driver for establishing the
Graph neighbor table representation, breadth first, depth first search
The figure is the figure we learned in the data structure. It is a structure for storing information. A graph is a type of data structure that is very common in practical
Java design mode-State)
Zeng Hou and Yi, who were unearthed in Hubei in 1979, can make different sounds every minute.In an object-oriented language, the clock has the property of dynamic changes, that is, the sound it can make. This attribute of
Java design pattern-Decorator pattern)
Sun Wukong has a change, and each of his changes brings him an additional skill. No matter how Sun Wukong changes in the eyes of Erlang, he will always be the ghost.The decorator mode dynamically attaches more
Implementation of deadlock in java Multithreading
1. directly add the Code:
Class LockDemo {public static final Object A_LOCK = new Object (); public static final Object B _LOCK = new Object ();} public class ThreadLockDemo implements Runnable
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