且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Java String.indexOf和空字符串

更新时间:2023-10-11 08:10:22

空字符串无处不在,无处可去。它始终在所有的弦中,渗透着它们存在的本质,但是当你寻求它时,你永远不会瞥见它。

The empty string is everywhere, and nowhere. It is within all strings at all times, permeating the essence of their being, yet as you seek it you shall never catch a glimpse.

你能算多少空字符串在一个字符串的开头? Mu

How many empty strings can you fit at the beginning of a string? Mu

学生对老师说,


Teacher, I believe that I have found the nature of the empty string. The empty string is like a particle of dust, and it floats freely through a string as dust floats freely through the room, glistening in a beam of sunlight.

老师回应了学生,


嗯。一个好的概念。现在告诉我,灰尘在哪里,阳光在哪里?

Hmm. A fine notion. Now tell me, where is the dust, and where is the sunlight?

老师用带子敲打学生并指示他继续他的冥想。

The teacher struck the student with a strap and instructed him to continue his meditation.