Java Chinese display garbled SolutionAfter installing Java in Ubuntu, you will find that all Java guis are garbled, because uming in Ubuntu 8.04. TTF changed to uming. the default Chinese font of Java in Ubuntu is uming. TTF, so you only need to
The first associated collection class in the Java class library isHashtable.HashtableIt provides an easy-to-use, thread-safe, and associated map function. However, the price for thread security is ――HashtableAll methods are
/***** @ Param year * int year * @ Param month * int month ** @ return int the last day of a month of a year */private int getlastdayofmonth (INT year, int month) {calendar Cal = calendar. getinstance (); Cal. set (calendar. year, year); Cal. set
1. the scope is public, private, and protected.A: The differences are as follows:Scope current classOther packages of the same packagePublic √Protected √ ×Friendly √ ××Private √ ×××The default value is friendly when no data is written.
2. What is
The reason is that I know little about it, but I still want to write it out to commemorate and remember it.
Both C ++ and C # Have The namespace concept. The concept in Java should be similar to that in namespace. I know that namespaces have very
Be sure to design the data as private
Data Initialization is required.
Do not use too many basic data types in the class
Not all domains require independent domain accessors and domain changers
Use standard format for class definition;
Operator priority table
Priority
Operator
Associativity
1
() [].
Left to right
2
! + (Positive)-(negative )~ ++ --
From right to left
3
*/%
From left to right
4
+ (Plus)-(minus)
Review and summarize.
Publicclass
/*** Public class, which can be seen in all packages * @ author OOS **/public class publicclass {/*** public domain, and all subclasses */Public int publicnum; /*** private domain, the current class is visible
The difference between the matches ()/lookingat ()/find () methods and the use of replaceall () replacefirst () appendreplacement () appendtail (), please refer to the code
Package test; import Java. util. regEx. matcher; import Java. util.
1. Check the Lib package
Commons-fileupload-1.2.1.jar,Commons-io-1.3.2.jarCommons-logging-1.0.4.jarFreemarker-2.3.16.jarOgnl-3.0.jarStruts2-core-2.2.1.jarXwork-core-2.2.1.jar)
Note that there was no commons-fileupload-1.2.1.jar before 2.1,
2.
A program of the changed core Java utilizes the gregoriancalendar class.
Enter the year and month to print the calendar of the specified month.
Package COM. xujin; import Java. text. dateformatsymbols; import Java. util. calendar; import Java. util.
During practical training a few days ago, I made a video sharing website. During the test, I suddenly found a problem. It took about three hours to debug the website, write a blog to commemorate a mistake caused by your own bid.Error
The following are common methods for date in Java APIs:
Package util; import Java. text. simpledateformat; import Java. util. date;/***** @ author yjmao * @ deprecated date common method summary * @ version v1.0.0 */public class learndate {public
Package util; import Java. util. hashset; import Java. util. iterator;/***** @ author yjmao * @ deprecated hashset common method summary * @ version v1.0.0 * @ see it does not guarantee the set iteration sequence; in particular, it does not
No nonsense:From 0Start with 1.1 drops in JavaDevelop your own B/S architecture
Severe warning:You only need to know a little bit about it.
Opening remarks:
I have read an electronic book. I have read too many details but I only remember the
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