What other classes do I need? [closed] - java

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm looking to create an application that will be used to help find a suitable University for prospective students to attend (which is based on various criteria about themselves). The application will be used by prospective students to enter details about themselves and a list of Universities will be displayed based on their profile.
I'm on the design stage (class diagram and etc) and i'm currently thinking of some Java classes I need to produce to do this. So far I've only thought of two...
University class (to hold information about Universities)
Interface class (this the GUI display)
Can someone help suggest what other class that I will need to create this application? You can suggest as many as you like.

Take every noun in your application description. Make it into a class. See if you can write a more detailed description of your app. Use those nouns as classes as well.

Related

user defined functions vs built in function in java five relevant differences over time and space complexities [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Please explain me the differences over time and space complexities in java for user defined and predefined functions in java. examples like, linked list, list, stack class. please explain this with valid example.
thank you.
There is nothing special in predefined function over user defined. The only thing is predefined has been written by somebody else for you. It depends on algorithm.
Crap code/implementation runs in a crap way. Doesn't matter if its user created or system/API provided. example at a high level is EJBs vs Spring.
Good written code runs pretty and sleek. Again doesn't matter who the hell wrote it.

Java - Check multiplicity between two class [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I would know It is possible in java language to write function. How to check the links between each class in java ?
For example
School |1 ----- 1..*| Student
Thanks for advance.
One-to-many relationships in Java is typically implemented as a List property:
class School {
private List <Student> students;
...
So to know how many students does your school have you call students.size().
I hope I understood your question correctly.
I am not sure if i understant you correctly. But! if you are looking for a way to create UML diagrams I can recomend you ObjectAId plugin for eclipse. Very easy to install and use.

Class with repeated buttons android [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have several classes with the same buttons. How can I combine them into one class rather than writing them in each class?
Thanks
Make a bean class for buttons and use them using getter and setters throughout your app.
create buttons dynamically
http://theopentutorials.com/tutorials/android/listview/android-custom-listview-with-image-and-text-using-baseadapter/
this link will help you to implement such things..
That may solve ur problem :)
Is the functionality of your button are different? So you can inherit some classes from base main class and put your functionality in them. Or use one class and use a flag to decide what functionality you should use.

Method class in Java [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am currently working on a project where I found this syntax:
Method m = bluetoothDevice.getClass().getMethod("createBond", (Class[]) null);
What is the purpose of "Method" class in Java and why we use it? Please elaborate with an example
Thanks in advance!
PS: I already saw the Java docs but not able to understand it.
The Method class is part of the "reflection" API which is about meta-programming. That means you can deal with structures of your program as data and process it in a java program. This allows flexible generic or abstract solutions. Method itself just represents a method in a Java class. There are other classes representing other parts of Java programs, too (e.g. Class).

Writing the UML for a java program [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
my first question;
I am new to Java, been playing around with object orientation for a few months. I want to write a UML class diagram however I am trying to research it for the past 4-5 hours. Every time I find information it opens up another can of words and quite simply, I haven't got the experience to understand the terms that it uses.
My program is constructed as follows:
class 1 (newMote) - creates a new instance of the object
class 2 (calibrator) - sets up all the gui for the system and registers components for events
Class 3 (Responder) - this is where the work happens, all my logic is in here and my actionevents
the following classes are for the api that I am using (sourced elsewhere)
class 4 (WiiUseAPI) - the api
class 5 (WiiUseAPIManager) - the manager for the api
class 6 (wiiMote) - lists all the methods from the wiiuseJ library
If I could get some instruction on where to look to better understand what I am doing that explains all details in real laymens terms or some instruction of how these classes would be constructed I would be eternally grateful.
For your code auto generate UML u can use ObjectAid an Eclipse plugin.

Categories