Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

what does this means while((s+ss) == null) ?

 
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator


i think that the string has a null value by default ....so if i run this code what i was expecting that while loop should keep repeating and printing "hi" on the command line but that didnt happen
because of the statement
now please explain me what s+ss returns or null or any different values
 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator

naved momin wrote:

i think that the string has a null value by default ....so if i run this code what i was expecting that while loop should keep repeating and printing "hi" on the command line but that didnt happen
because of the statement
now please explain me what s+ss returns or null or any different values


i got that
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic