This question already has answers here:
What is the need of collection framework in java?
(10 answers)
Closed 7 years ago.
Actually I am learning Java and stuck on "Collection" . Can any body explain what does it mean by :-"Collection is a frame work" . I am a bit confused . Is it a pre-written programmes? is it a environment to build project. Kindly explain. Your help would be highly appreciable.
"Collection is a Framework" is incorrect, but you can see how someone would make that mistake.
Java has the Collections framework, which is a group of classes and interfaces provided by the JDK that handle collections of things like lists and maps and sets. They're in the java.util package (along with a bunch of other things that aren't part of the Collections framework).
More about the collections framework in this tutorial.
Related
This question already has answers here:
Are there some good and modern alternatives to Javadoc? [closed]
(12 answers)
Closed 8 years ago.
I have been using Java for years I really like the language except javadoc.
The document generated by javadoc makes me feel I am browsing web in 1990s. To make some beauty doc you have to insert obscure html tags which make your comments almost unreadable before generating html file.
I am seeking some alternative for javadoc, reStructuredText is my first choice but there is no doclet for it. Another choice is markdown, but it mainly aims to html so I treat it as my last resort if I can't figure out any other way.
I am also considering split comment from java file, but it bothers developers who browse code in IDE.
Any good ideas?
You may not need to use an alternative to Javadoc.
If you are using Java 7, the new version of Javadoc has been redesigned.
Here's an example of the output: Java 7 Reference
This question already has answers here:
Embedded Prolog Interpreter/Compiler for Java
(13 answers)
Closed 8 years ago.
I hope my question is not a duplicate... I have implemented some rules using Prolog. I would like to ask if there is any way to use these rules in a java application. I do not want to implement everything in java from scratch. I would like to embed the code written in Prolog in a java application. Thanks in advance.
There are various ways. But judging from your question you're looking for a quick solution.
JPL (since i notice a lot of people are using SWI nowadays):
http://www.swi-prolog.org/FAQ/Java.html
The GNU Prolog library for Java:
http://www.gnu.org/software/gnuprologjava/
SICtus (It comes with syntax examples, etc so it shouldn't be hard for you to use it quickly)
http://sicstus.sics.se/sicstus/docs/3.7.1/html/sicstus_12.html
tuProlog (Said to be the easiest to use, beginner friendly)
http://www.alice.unibo.it/xwiki/bin/view/Tuprolog/
This question already has answers here:
Adding Annotation Syntax to C++ Source
(2 answers)
Closed 10 years ago.
I'm a Java programmer and I'm learning c++ 11 which I like a lot. I really think it's great but I'm missing the notion of annotation in this language.
First, is there something close to Java style annotation in the standard ? I think there's not after my research.
What would be the closer, standard way (no compiler extensions), to "simulate" a Java style annotation in c++ ?
And please don't mention the c++ 11 override annotation. I mean user defined annotations.
There is nothing like annotations in standard C++. For alternatives, it depends on why you want to use annotations.
one of the use of annotations in Java is to mark some methods or classes with meta-data so it can be retrieved through reflection at runtime. But reflection in standard C++ is very limited, so there is nothing like that. I haven't had a look at boost::reflect, maybe it can be useful to you.
another use of annotations is to have tools that intervenes at compile time to inject some code or to do checks. The tool to do this kind of stuff in C++ is the preprocessor.
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Java : Is there a good natural language processing library
are there any known open source distributions that one can use like nltk for python?
GATE is the most famous industry-level librarywith a java implementation I can think of.
It is truly powerful.
Otherwise:
OpenNLP
LingPipe
Xerox used to have a set of nice online tools as well, but I don't know if they have a Java implementation or any accessible web-services for them.
This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
places where Java Beans used?
Can anyone tell me what exactly "Java beans" is and why is it used?
Links
Wikipedia/JavaBean
java.sun.com - Developer - Online Training - Introducing Java Beans
I do not like the term java bean, it just causes confusion because every properly written java class is per definition a java bean, that is, using proper encapsulation rules and so on.
But take care, sometimes people who are saying java bean, mean enterprise java bean (EJB) which is are classes which derive from special classes in the java EE framework.