Win a copy of Kotlin in Action this week in the Kotlin forum!
    Bookmark Topic Watch Topic
  • New Topic

Please help  RSS feed

 
pravink chougule
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Report post to moderator
**There was a qs with a character array being declared as a class member as :

Char ch[] = new Char[4] .

This was not initailized anywhere . But this was used to acess the fle data with a reader as follows :

While(ch = (int)out.read(ch) != -1){

Sysout´┐Ż.

}

the file contained abcdef

Answers:

1.)null

2.)aaaaaa

3.)abcdef

4.)abcdab

5.)ababc
 
Joe Ess
Bartender
Posts: 9428
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once. It causes confusion and duplication of effort as the community tries to help everyone.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!