"1234"
, "pin"
and a Context
.string
being declared and immediately assigned a value:PreferenceManager
or getDefaultSharedPreferences
, but you won't have the option to "Go to declaration" - it's disabled.getDefaultSharedPreferences
getString
is doing."pin"
right?2c357e386f80a13452cfec7ef58a6609034f5c08
.||
, these can be read as "OR". Its counterpart is &&
which is read "AND".
!
can be read as "NOT". In the case of a boolean, this means true becomes false, and false becomes true.
null
means nothing - unset - no value.
?
and :
here is a shortcut for an if / else check.
(expression) ? (action/value if true) : (action/value if false)true
will result in the function returning false
. Confused yet? We're not done!