0

How r u every body.
I have some qoustions:
1)What is the difference between an instance data field and a static data field??

2) Also I have assignment and i wont to add txt on text area and when add new one txt it must appear in next line of text area ???

4
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by digirandi
0

Hi

How r u every body.
I have some qoustions:
1)What is the difference between an instance data field and a static data field??

2) Also I have assignment and i wont to add txt on text area and when add new one txt it must appear in next line of text area ???

To add in the text area a new line you would have "\n" added in your string whereever you need a new line, so e.g.
System.out.Println("yourname" + "\n" + "yourage");

HTH
Sarah

0

the difference is that static variables are common and that can be changed at any position of the code

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.