This method allows you to access a String as if it were a char array; note that there is no "set" method, since strings are immutable.
int
indexOf(int ch,
int fromIndex)
Returns the index within this string of the first occurrence of the
specified character, starting the search at the specified index.
int
indexOf(String str)
Returns the index within this string of the first occurrence of the
specified substring.
int
indexOf(String str,
int fromIndex)
Returns the index within this string of the first occurrence of the
specified substring, starting at the specified index.
This method is very useful! If you don't know what a regular expression is, try splitting around " " (a single space) or ",' (a comma). It will save you much time when reading in data.
String
substring(int beginIndex)
Returns a new string that is a substring of this string.
String
substring(int beginIndex,
int endIndex)
Returns a new string that is a substring of this string.
why grit is a better predictor of success than SAT scores.
All of which flies in the face of the kinder, gentler philosophy that has dominated American education over the past few decades. The conventional wisdom holds that teachers are supposed to tease knowledge out of students, rather than pound it into their heads. Projects and collaborative learning are applauded; traditional methods like lecturing and memorization—derided as "drill and kill"—are frowned upon, dismissed as a surefire way to suck young minds dry of creativity and motivation. But the conventional wisdom is wrong
The thing that sets children apart from adults is not their ignorance, nor their lack of skills. It’s their enormous capacity for joy.
Human lives are governed by the desire to experience joy. Becoming educated should not require giving up joy but rather lead to finding joy in new kinds of things: reading novels instead of playing with small figures, conducting experiments instead of sinking cups in the bathtub, and debating serious issues rather than stringing together nonsense words, for example
In some cases, schools should help children find new, more grown-up ways of doing the same things that are perennial sources of joy: making art, making friends, making decisions
why not focus on getting them to take pleasure in meaningful, productive activity, like making things, working with others, exploring ideas, and solving problems?
These are important 21st century skills that we already aim to teach.
The more dire the school circumstances, the more important pleasure is to achieving any educational success
You can force a child to stay in his or her seat, fill out a worksheet, or practice division. But you can’t force a person to think carefully, enjoy books, digest complex information, or develop a taste for learning. To make that happen, you have to help the child find pleasure in learning—to see school as a source of joy