Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

exercise for my school with methods

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my problem isn't the printing but i don't understand/can't find the way to make the list
 
Bartender
Posts: 3611
151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Isn't that a task that the School should perform? It seems that the School should maintain Lists of Students, Courses, Teachers and the like. Does your menu in the School class have a option to add/delete a Student?
 
Johny Sougiospitos
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Piet Souris wrote:Isn't that a task that the School should perform? It seems that the School should maintain Lists of Students, Courses, Teachers and the like. Does your menu in the School class have a option to add/delete a Student?


it wants to print the list of students/coourses etc the user put as entries.
i understand that every input goes to a constructor..i don't understand how to save the specific input in a list..how to save the instances of the constructor to the list.
it is obvious that i must use an if statement but i want someone to help me write it by explain it to me

if i get to understand how to make the list of students work i think i will be able to create the other lists too..
 
Piet Souris
Bartender
Posts: 3611
151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had a look at your Student class. What I missed (I may have overlooked it) is a constructor Student(String firstName, String secondName, String birthdate) {...}

Now, in your Schoolclass, have a field List<Student> students. In the 'add student' method, you ask the user for the FirstName, the SeconName and the Birthday, and then you do: sudents.add(new Student(firatnme, secondname, birthday) and you are done.

Add an option to your schoolmenu: 'print list of Students' that simply does:
 
Johny Sougiospitos
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Piet Souris wrote:I had a look at your Student class. What I missed (I may have overlooked it) is a constructor Student(String firstName, String secondName, String birthdate) {...}

Now, in your Schoolclass, have a field List<Student> students. In the 'add student' method, you ask the user for the FirstName, the SeconName and the Birthday, and then you do: sudents.add(new Student(firatnme, secondname, birthday) and you are done.

Add an option to your schoolmenu: 'print list of Students' that simply does:



Sorry but i don't understand what you are saying!
it is obvious that i am stupid and i can't solve that!
i will start over all the exersice with the new data teacher gave us.
The new data are..4 classes and the main one. -the user put data to all entities and he should have the option to add more than one entry at a time.The output is lists of students,courses,trainers.List with all the student per course/trainers per course/assignment per course.

That's what the exercise asks.

it is more difficult than before right?

i am gonna think about it ..if the existing code can change for the multiple entries and how it's entry must be saved..so at the end of n entries there should be n iputs in the list
 
Saloon Keeper
Posts: 6423
61
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alternatively
 
Johny Sougiospitos
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Carey Brown wrote:Alternatively



???

Wait a moment guys..You are confusing me!!
I Try to figure how to solve the exercise with the new data!it became ultra dificult now!
or it is an easy one and i am stupid?
i am trying to figure out how to break this exercise in smaller pieces so i can solve it!
for example:
1.How to make multiple entries
2.How to save all these entries
3.how to create all the lists -simple ones and mixed ones


i think that these 3 things are the exercise.Right??

It's just it's the first time i have an exercise with so many classes and i have noone to help me figure  out the steps...So,please if you help me that figuring out the solutions i an way i understand that you be awesome
 
Johny Sougiospitos
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone explain to me how to think when you have this kind of exrcise??

i think that i,myself, am making this exercise difficult because i don't have the correct way of thinking.
So,is anyone available to help me?
 
Carey Brown
Saloon Keeper
Posts: 6423
61
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look for nouns and verbs in your requirements. Nouns tend to become classes and verbs tend to become methods.

The exercise is a simple one..it's a school with students and courses.i must write a program in which a user must insert data on Students class and Courses class as many times as  he wants.In the main class should be a menu to give you a choice...

What do we know so far:
Nouns:
School
Student
Course

These become classes (note they are singular). There is also a Main class to drive the program.

Some inferences:
A School has (a collection of) zero or more Students
A School has (a collection of) zero or more Courses

Main class has a menu

The simpler version of this exercise was to have 3 classes School,Students,Teachers.The last 2 Classes with variables etc and what the exercise wants was the user to make entries in these classes and print them as list..And in the main class should be a menu.

Now a new noun has been added:
Teacher

A School has (a collection of) zero or more Teachers

We have a fragment of the Student class but no requirements to explain it:



A Student has a List of zero or more Courses. Presumably a Course here must also appear in the List of courses that the
School offers.

Assignment is a new noun and class. There is a List of assignments.

A note about setters: Not all classes require setters for all fields. As an example: once you create a Student object, are
you going to permit the name or birth date to change?

Possible responsibilities:
School:
   Maintain a List of Students: Add / Delete / Print
   ditto for: Teachers, Courses
Student:
   Maintain a List of Courses and Assignments
 
Johny Sougiospitos
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the other classes are these:


i think these are the x=characteristics of all the classes..

as for what you ask..Student name and Birthdate won't change

Teacher told us we should have at least 4 students and 3 courses.trainers we can put as many as we want..

my query/thought is: list of courses should be a fixed one -in case user doesn't make any inputs? We asked about that and his answer was "this is your problem"

so,the first thing is to create classes and setters/getters right;
 
Carey Brown
Saloon Keeper
Posts: 6423
61
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Johny Sougiospitos wrote:as for what you ask..Student name and Birthdate won't change

So, NO SETTERS for those.

so,the first thing is to create classes and setters/getters right;

Only create SETTERS if APPROPRIATE.
 
Johny Sougiospitos
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Carey Brown wrote:

Johny Sougiospitos wrote:as for what you ask..Student name and Birthdate won't change

So, NO SETTERS for those.

so,the first thing is to create classes and setters/getters right;

Only create SETTERS if APPROPRIATE.



How can i know which setters are appropriate and which not?
 
Carey Brown
Saloon Keeper
Posts: 6423
61
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If one or more fields comprise a key to the object, then presumably they can't change and shouldn't have setters. A student's first and last names are more than likely going to be a unique identifier to find their particular record object. Then there are other fields, like date of birth, that don't make any sense to change once the object has been constructed.
 
Johny Sougiospitos
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think i created them in all classes..

next step is the user inputs right?
 
Johny Sougiospitos
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am still confused over that thing..
in my Student class if i want except the data i ask about student -firstname,lastname,fees,birthdate (original data) -if i want to create later the student/course list should i ask him the lesson he wants to attend??--

the original studentinfo scanner:



to save them in a list i use the:


it seems to be working

so,should i put another question here for the course?
 
Carey Brown
Saloon Keeper
Posts: 6423
61
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your requirements are a bit vague here but I would probably consider creating and adding a new Student to be a totally separate operation from adding a Course to a Student, seeing as how you could always come back at a later time to add another Course to the same Student.

On a different topic, this is just me nit-picking, I don't like your choice of the variable name 'listOfStudentsDetails'. It's a mouthful without adding any useful information to the description. You have a class succinctly named 'Student' not 'StudentDetails', so why say 'StudentDetails' here? 'listOf' is subject to various opinions. Just saying 'students' (plural) should get the point across without tying you to a List implementation, on the other hand, knowing that you are dealing with a List is often useful. My personal vote would have been for 'studentList' because the important part is 'student' and 'list' is just for clarification.
 
Johny Sougiospitos
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Carey Brown wrote:Your requirements are a bit vague here but I would probably consider creating and adding a new Student to be a totally separate operation from adding a Course to a Student, seeing as how you could always come back at a later time to add another Course to the same Student.

On a different topic, this is just me nit-picking, I don't like your choice of the variable name 'listOfStudentsDetails'. It's a mouthful without adding any useful information to the description. You have a class succinctly named 'Student' not 'StudentDetails', so why say 'StudentDetails' here? 'listOf' is subject to various opinions. Just saying 'students' (plural) should get the point across without tying you to a List implementation, on the other hand, knowing that you are dealing with a List is often useful. My personal vote would have been for 'studentList' because the important part is 'student' and 'list' is just for clarification.



i understand what you say about the names..I have them like that because i  am trying to solve the exercise now and i want to have some mouthful names to remember what i am doing.if i ever solve all the exrcise and i am fully aware of what i have done i will change the names in shorter words.

Now,as for the requirements there are not many...The teacher told us to add students/courses/trainers et!c..it's someting like an empty base.
the operation are:
add student/add courses/add teachers/add assignments in general (put data in the classes)
the specific ones are  student per course/teachers per course/assgnment per course/assignment per student and course
print list of the  above



the first requirement to add Student/teacher/courses/assgnments basic info is simple i think.it's like the student i made.To print the list of them i believe i got it

The tricky (?) ones  are the  student per course etc
i know that in Class Student i must have as variable a list <Course> course and a list for assignments
in Class Course a list of students and assinments etc

i am confused on how to combine these data..
 
Rancher
Posts: 117
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your Course class you have methods setStudent() and getStudent() which are confusing as they are setting and returning the whole list.

Instead you probably want methods like addStudent(Student student) and removeStudent(Student student), inside them you would change content of the list and at the same time you could also add course to the Student object.
 
Marshal
Posts: 66264
250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't notice at first, but there is more to say than what AG said.
Why would you want a setXXX() method in the first place? Do you really think it is necessary to change the entire List of students attending a particular course? And returning the List unchanged allows others to modify the course without your knowing about it. You can write...but that looks a bit awkward. If you look here, you will find four other ways to return a List; some of them dissociate changes in one List from the other.
 
Johny Sougiospitos
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Adrian Grabowski wrote:In your Course class you have methods setStudent() and getStudent() which are confusing as they are setting and returning the whole list.

Instead you probably want methods like addStudent(Student student) and removeStudent(Student student), inside them you would change content of the list and at the same time you could also add course to the Student object.



really??
Teacher told us to hace getter/setters for every variable...
the addStudent method how will work?well,i am trrying to figure out how to unite students and courses but until now i am not close enough...basically i am miles away from the solution.
to unite them..should i have a question on student scanner which course he/she wants or not??i can't see other way to combine those!

Question..In student i have private lists course and assignment...it's because i have them there that i can unite them?
if i create the addStudent method in Class COURSE means i can use it in Student class?
 
Johny Sougiospitos
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:I didn't notice at first, but there is more to say than what AG said.
Why would you want a setXXX() method in the first place? Do you really think it is necessary to change the entire List of students attending a particular course? And returning the List unchanged allows others to modify the course without your knowing about it. You can write...but that looks a bit awkward. If you look here, you will find four other ways to return a List; some of them dissociate changes in one List from the other.



so,everything is wrong??
i have to start over again?/
this thing is confusing..
Teacher told us to make setters/getters for everything we have in the class...if they are necessary or not i don't know..i haven't understood how am i supposed to do some of the things this exercise asks..
For the moment i have created all the classes -printed the list of students -somehow i can print the other lists too..
i can't find a way for the combined lists(students-courses/courses-teachers etc)
 
Marshal
Posts: 7271
492
Mac OS X VI Editor BSD Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Johny Sougiospitos wrote:Teacher told us to make setters/getters for everything we have in the class...if they are necessary or not i don't know..i haven't understood how am i supposed to do some of the things this exercise asks..


I'd say follow what instructions say. There is a chance you misunderstood what your teacher said. If teacher said create setters/getters, there must be something mentioned in the instructions directly or indirectly. By indirectly I mean, that some needed functionality should drive you towards a need to create setter() for something.

Would you like to share some portion of the instructions which describe this exercise part you are trying to implement?
 
Liutauras Vilda
Marshal
Posts: 7271
492
Mac OS X VI Editor BSD Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Johny Sougiospitos wrote:Question..In student i have private lists course and assignment...it's because i have them there that i can unite them?
if i create the addStudent method in Class COURSE means i can use it in Student class?


Not quite sure I understood you well what you mean in your first question, but having referenced courses and assignments in the student class lets you slightly easier to query things when needed, it is a design decision, neither correct or wrong if to answer right away, it depends. Having that way, the Student would know on which courses he/she enrolled, and at the same time the Course would know which students are enrolled on this very course. I would be suspicious about having Assignments in Student class though. Look at the test classes I wrote for you to see some possible high level implementations.

The answer to second question is, well, yes.

I've created two test classes with one test in each. I think that is something what you are asking/trying. Want to try to implement?


Think for a while, can you see how they are related if you wanted to implement so the student would get reference of the course he just enrolled on, and at the same time course would know the details of the student. If I'd modify StudentTest class to the variant down below, the test would still pass.

Some of the things you may have not seen yet, what's regarding Student class, read bout double dispatch, you may get a sense how it could be implemented. It is a simplified version of it as you have only one Course class.

To be honest I'm quite surprised you were given such an interesting/good assignment at the level of age you are, most of the students learning that stuff only in universities. I'm at that age was still playing with a ball in the backyard... So good learnings for you
 
Carey Brown
Saloon Keeper
Posts: 6423
61
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was looking at your classes and questioning how relationships were being represented. For example: Student has-a list of Courses and Course has-a list of Students. This may be a way to implement it but it means that neither Course nor Student can manage this bi-directional relationship. So, leaving aside relationships for the moment, I went back to School, which I see as the driver of the project, and was trying to sketch out the operations that the user would need to be able to perform. These could form the foundation of a Menu.

 
Liutauras Vilda
Marshal
Posts: 7271
492
Mac OS X VI Editor BSD Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Carey Brown wrote:Student has-a list of Courses and Course has-a list of Students. This may be a way to implement it but it means that neither Course nor Student can manage this bi-directional relationship.


That's a very good point. It can work one way actually, the one I showed in tests, but not the both ways. But I agree, that can be error-prone.
 
Piet Souris
Bartender
Posts: 3611
151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A few (premature?) other remarks:

What is a Course? Is that Geography? Or is that Geograpy for the third study-year? Or are there more than one Geography third-year Courses given, by several Trainers?

If you want to add a Student to a Course, how do you specify which Student that is and which Course that will be?
 
Carey Brown
Saloon Keeper
Posts: 6423
61
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Liutauras Vilda wrote:

Carey Brown wrote:Student has-a list of Courses and Course has-a list of Students. This may be a way to implement it but it means that neither Course nor Student can manage this bi-directional relationship.


That's a very good point. It can work one way actually, the one I showed in tests, but not the both ways. But I agree, that can be error-prone.


My approach.

 
Johny Sougiospitos
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Goodmorning and i am sorry for the late reply.My dad is at hospital.
I saw your posts but i don't know what a Map or a Set is.At least i haven't been taught that yet..i know Arraylists.

Teacher told us now to create 7 classes
4 original classes Courses-teachers-students-assignments
and 3 middle ones like StudentperCourse/Teacherspercourse/assignmentpercourse

As for data ..he told us to create lists with data but the program should ask the user put entries in these lists..
and then make the relations.


now i am doing it all over the beginning?Creating all these classes and lists but as i am thinking it now - i wonder how to "unite" teachers with the courses if for example i hava one course Java and 2 techers available??
is a stupid question or i am making this exercise more difficult than it is?

i will be back later with all the new data
 
Johny Sougiospitos
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Liutauras Vilda wrote:

To be honest I'm quite surprised you were given such an interesting/good assignment at the level of age you are, most of the students learning that stuff only in universities. I'm at that age was still playing with a ball in the backyard... So good learnings for you



It is interesting but unclear on what i have to do and i  think i am gonna have a heart attack like my father  
 
Carey Brown
Saloon Keeper
Posts: 6423
61
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A "Map" has a "key" and a "value". The key must be unique and it is used to insert and retrieve an associated value. A key may be of any type and a value may be of any type. Here we are using a key that is an instance of a Student. And because a Student can belong to zero or more Courses, the value is a List of Courses. If we want to add a Student to a Course we first use the Student as the key and retrieve the List<Course> (i.e. "the value"). If the new Course is in the list then we don't need to do anything, otherwise we need to add the new Course to the List and then re-add the list back to the map using the same key. If the key is not found then the value returned is null.
Now, we can save a step by using a Set<Course> instead of a List<Course>. A "Set" only permits a single copy of an object to exist inside the set, so the business of looking to see if it already exists is taken care of for us.  So, now we have...
This maps one Student to N Courses.

We also need to look up Students by Courses, so we need a map that maps one Course to N Students. This looks like...
Then we throw in a manager method that updates both of these maps with a given Student and Course (and Course and Student) to the two maps in order to maintain them in sync.
 
Johny Sougiospitos
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Carey Brown wrote:A "Map" has a "key" and a "value". The key must be unique and it is used to insert and retrieve an associated value. A key may be of any type and a value may be of any type. Here we are using a key that is an instance of a Student. And because a Student can belong to zero or more Courses, the value is a List of Courses. If we want to add a Student to a Course we first use the Student as the key and retrieve the List<Course> (i.e. "the value"). If the new Course is in the list then we don't need to do anything, otherwise we need to add the new Course to the List and then re-add the list back to the map using the same key. If the key is not found then the value returned is null.
Now, we can save a step by using a Set<Course> instead of a List<Course>. A "Set" only permits a single copy of an object to exist inside the set, so the business of looking to see if it already exists is taken care of for us.  So, now we have...
This maps one Student to N Courses.

We also need to look up Students by Courses, so we need a map that maps one Course to N Students. This looks like...
Then we throw in a manager method that updates both of these maps with a given Student and Course (and Course and Student) to the two maps in order to maintain them in sync.



i didn't quite understand Maps,Sets etc..we haven't done these in school and i can't use them.i  can use List/Arraylists.
In few minutes i will upload for the last time the new classes
 
Johny Sougiospitos
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my new classes and queries:













These are the classes gor the last time..
queries:
in classes StudentsPerCourse and TrainersPerCourse how do i declare the variables?

the lists i created are because teacher told us that there should be an option user doesn't put entries and just prints the existing ones.

i want to make something like that in the menu:

"Java and Python are the available courses.Are you interested?
if Yes choose 1.python 2.java
if No do you want to add a course??

well, i can create something like that but i wonder since i have to print Students per Course if it possible
a.if the user selects Java somehow to split the list of courses in java course and python course and then print something like Java course:2 students  Python Course:3 students

Is that even possible?


 
Liutauras Vilda
Marshal
Posts: 7271
492
Mac OS X VI Editor BSD Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Johny Sougiospitos, even though you put a lot effort into it writing and later rewriting, I feel that everything goes in more or less chaotic way. I get an impression that you don't see clear use cases what you need your system to do.

I'd suggest you first try to identify from the given requirements what you system needs to do, and not what the systems needs to have i.e. what classes, data or similar.

For instance, you are now talking that system needs to have School, Teacher, Course classes. And so what? That's pretty dry information withou any context around.

I imagine would be much easier if you'd think that way (an example, not necessarily related with your requirements as we didn't see them) :
1. School system should allow to enrol Student on Course.
2. Teacher should be able to register and unregister to Course as a Teacher of it.
3. School system supposed to provide all the Student names by querying a specific Course and the year of study.
4. ...

Get an idea? Now you you know where you need to get at. You have some clear (at least for a start) functional requirements what needs to be done. From that you can identify what classes (I've capitalised words for you which potentially reflect needed classes) you need, what relations are between them.

I guess you were given those class's names upfront, ok, but that shouldn't stop you from thinking about the system as about functioning components which do something unambiguous and useful.

Now, try to identify those within your requirements, and see what you get. Share with us, so we understand better too.
 
Johny Sougiospitos
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Liutauras Vilda wrote:Now, try to identify those within your requirements, and see what you get. Share with us, so we understand better too.


the system allows user to put entries to  Students/courses/trainers/assignments once or more than one time
what i have to do is that:
•A list of all the students/trainers/courses/assignments
• All the students per course
• All the trainers per course
• All the assignments per course
• All the assignments per student  HINT: You need to relate a student per course and per assignment
• A list of students that belong to more than one courses

i have done the first dot..which iss the simple lists
i can't make the combined lists such as students per course etc

its very confusing..
 
Liutauras Vilda
Marshal
Posts: 7271
492
Mac OS X VI Editor BSD Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Johny Sougiospitos wrote:the system allows user to put entries to  Students/courses/trainers/assignments once or more than one time


What entries? Please come up with something clear and unambiuous. Don't think about all of them in one go.
 
Johny Sougiospitos
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Liutauras Vilda wrote:

Johny Sougiospitos wrote:the system allows user to put entries to  Students/courses/trainers/assignments once or more than one time


What entries? Please come up with something clear and unambiuous. Don't think about all of them in one go.



ok..Sorry for the long posts regarding the quotes!!i will try not to do that again.Sorry again!

we have the System "School"..
the "School" has "Courses","Students" etc ok??

as user i can put entries in these fields.Example:Student1 ="John" etc
There are by default entries in these fields and as user i can add more!

and when i put the entries i want ..the System should be able to print the things i said before
 
Johny Sougiospitos
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
  thanks for all the help you guys gave me but i am quitting.i can not solve this exercise..i can't figure out how to do the things this exercise asks and deadline ends tomorrow.
i am sorry that you lost your time with me    
 
Johny Sougiospitos
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i believe that you never intended to help me...
Anyway it's my loss sinve i can't solve this exercise//and i am mad becuse teacher told us that this exercise will not take us more than 1 hour...and i am trying to solve it 5 days!  
 
My pie came with a little toothpic holding up this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!