• Post Reply Bookmark Topic Watch Topic
  • New Topic

intro and i dont understand this code  RSS feed

 
david jeche
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello everyone im new here and would just like to say i look forward to sharing and learning alot from here im a low level programer atm i code in java but look forwards to leanr other lanuages

my first question is why does this code work i slightly dont understand

i was learning i about playing with url within the jave programe i came across this



why does this print out the contents of the html file even though the nothing is acuatlty added in to the string inputline

from my understanding this part of does comparison and not any acuatel input in to the string

thank you in advance
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dj hckit wrote:hello everyone im new here and would just like to say i look forward to sharing and learning alot from here im a low level programer atm i code in java but look forwards to leanr other lanuages

my first question is why does this code work i slightly dont understand

i was learning i about playing with url within the jave programe i came across this



why does this print out the contents of the html file even though the nothing is acuatlty added in to the string inputline

from my understanding this part of does comparison and not any acuatel input in to the string

thank you in advance


This part....



Calls a method, and assigns the returned result to the inputLine variable.

Henry
 
david jeche
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Henry Wong wrote:
dj hckit wrote:hello everyone im new here and would just like to say i look forward to sharing and learning alot from here im a low level programer atm i code in java but look forwards to leanr other lanuages

my first question is why does this code work i slightly dont understand

i was learning i about playing with url within the jave programe i came across this



why does this print out the contents of the html file even though the nothing is acuatlty added in to the string inputline

from my understanding this part of does comparison and not any acuatel input in to the string

thank you in advance


This part....



Calls a method, and assigns the returned result to the inputLine variable.

Henry


oooohh wow i feel slightly embarised i dont ho i missed that instead of seeing i saw

thnks for point that out
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!