Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tips from me

 
sona gold
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys
here r the tips i used and that helped me
1. take a print out of the tree like sturcture of the following and stick it some place where u can stand and see them for about 20 mts everyday
visuals are better remembered than text
I/O
components
menu components
events
if u have a confusion between component or container coming first
remember "m" comes before "n"
for the events that do not have coressponding classes
remember IATA
these have only one method and hence no class
in the hierarchy structure, IATA and components come on the first line and the rest are below component
for the components that generate item events ... remember all the components beginning with "c" and "List"
the rest generate action events + "list" also
the more obvious ones "adjustement even" text event" there is no confusion or need to memorise

now to come to I/O
the File class does not create a file
Reader, Writer , InputStream, OutputStream are all abstract and cannot be instantiated
so if u see anywhere (new Reader) or any of the others mentioned above..... it is an error.
For object representation and primitive representation you would use the ObjectInputStream or DataInputStream (and ofcourse the coressponding writer)
for character encoding
we use InputStreamReader and OutputStreamWrtier
Only FileInputStream, ByteArrayInputStream .. the first line of heirarchy can take the File constraint, the rest cannot take the File constraint directly
For the RandomAcessFile
only two forms are possible "r", and "rw"
"rw" will create the file if the file does not exist
It takes the File constraint only
thats it guys
if anything else comes up i will post it for sure

 
jeena jose
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks sona.explanation for I/O was helpful
 
rajashree ghatak
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx sona.
ur tips are of great help.
rajashree.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Mikael Jonasson
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IATA?
/Mike
 
Ricardo Polero
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the tips !
 
angelo celeste
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sona.
What is IATA?
-Angelo
 
Amit Barot
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IATA ?
International Air Travel Agent?
 
rajashree ghatak
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IATA stands for Item,Action,Text,Adjustment events which have only one method and hence no corresponding adapter classes for them in AWT.
rajashree.
 
sona gold
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks rajshree for making my work easier
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic