Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: 0

When you learn Java,Some details of the small problems tend to be very confusing,When in receive parameters, for example。

If your program needs to receive arguments in order to run,And you did not give the default parameters,That can cause this error:

For example, your code is:

When you need to run the program at this point passed in the parameter。It's not difficult,The hard part is in ecl[……]

Click link to continue reading...

SARFT ban vulgar reality show:Boycott and show off their wealth over the star

Yesterday,Light Ding Bureau officially issued the "Notice on Strengthening Management of the reality show"。The circular points out,Hot nowadays reality show mostly interesting and "meaningless"。It is not a good guide social values ​​of the public ......

Alas,Light Ding finally do a piece of Personnel,Speaking of reality show,I thought of that sucker 20 beauty review see monkey ..................[……]

Click link to continue reading...

Rich text annotations in the Playground

In Xcode 7 among,Playground allows us to use Markdown syntax similar to rich text format code has comments,Now,We will briefly explain how the text rich text notes。

How to edit rich text annotations

Open your Xcode 7,In the Playground,Editor select the menu bar > Show Raw Markup to allow rich text annotations displayed as plain text mode,So that they can become the editor。This step again[……]

Click link to continue reading...

IT (Information Technology) and technical data (Data Technology)

As early as last year,DT concept was brought up,And I do not know has been。until today,Only occasionally learned。Quickly following google,Not only the amount of help sigh:I already can not keep up the trend。

We know that IT is short for Information Technology;So the name suggests DT,Data Technology is the abbreviation of the。

The thought of writing on a domestic computer science textbooks in the future is no longer "information Technology"But"Data Technology”,I felt a creepy。

IT synonymous today[……]

Click link to continue reading...

Interpret:How do I declare the Swift closure?

Today, a friend recommended an interesting page,A domain name is like:

http://fuckingclosuresyntax.com

In the Swift,All functions are closures,Standard functions are just the most complete closures name with parameters。

All right.,The following is the text

 

 

Asvariable:


 

AsOptional variable[……]

Click link to continue reading...

String NSString and what difference?

Swift programming language learning time may not experience this thing,But with the depth of learning,As you read other people's code when,You will probably encounter this type NS,This time you will certainly be curious,similar String and NSString In the end where the difference? They seem to be exactly the same way! and,As by keyword,We can also easily make data conversion between both of them。

Make it clear type NS,We have to start from NeXTSTEP operating system to start the year:

NeXT order to write this[……]

Click link to continue reading...

How do I learn English

My English level is not high,Performance is not good。My interest in learning English is not great,Syntax may now be over, but junior high school students。

But I still got the third prize of National College English Contest、Able to read some of the books is not fluent in English、Sweating can translate English articles、Manual can fluent in English reading various software、Bored able to stroll around the forums and websites in English、You can still read an English or American TV movie without subtitles situation。

I know that this level is not worth showing off what,I still have not had the English four,I write English[……]

Click link to continue reading...