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 ???

Recommended Answers

All 3 Replies

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.