0

How can write a school members, and print all of students of each teacher?

think we have and school with teachers and each teacher has some students, help me to write a code to add some teachers and their students and then print all of them. input of app is : add teachers, then select a teacher and add student for that. output of app is: print all teachers and their students. important: each members(teachers and students) have a specific code, that can call their name with code. or call code with name.

13th May 2017, 7:14 PM
hamid
hamid - avatar
12 ответов
+ 2
thank you Jmse for code
20th May 2017, 8:41 AM
hamid
hamid - avatar
+ 1
very good, thanks, very helpful, now my next question: in gui mode, we cant define t1 or t2 and more, how can write this? think we have jtextfield and a button to add teachers, and a jcombobox to add all teachers name to it, also have a jtextfield2 to add students name, and a button2 to add students, we select a teacher and write student name and click on button2, this student add for selected teacher.how about this, I know this question get more time to write, im sorry for that and thank you about your help.
14th May 2017, 4:40 AM
hamid
hamid - avatar
+ 1
how can ask my questions? do you have skype?
20th May 2017, 8:42 AM
hamid
hamid - avatar
0
how about print output?
13th May 2017, 8:16 PM
hamid
hamid - avatar
0
this code dose not work.
14th May 2017, 3:10 PM
hamid
hamid - avatar
0
who can help?
14th May 2017, 5:58 PM
hamid
hamid - avatar