|
cloudagent wrote: Plz help me out.
Read the eclipse help pages which explain how to create and build a project; it is really quite simple.
When you have a more specific technical question feel free to come back for further help.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
|
cloudagent wrote: But i dont know how compile the code in eclipse.
Hopefully either you have more than a beginner level of programming experience in java or have at least a mid-level experience in programming something like C++ or C#.
Otherwise in terms of what one might suppose "project topic" means you have bitten off more than you can chew.
If you do have that then it might help to note that you don't need eclipse to use tomcat.
|
|
|
|
|
i have ontology and i made a query on it in java with jena ,lets say that i search for "car" my request is how i retrieve all relations that related with "car"
note:i used wordnet into java but the result is so poor
|
|
|
|
|
|
in documentation I found code describe all the ontology in java but what i want is when i ask for "car" the result be all relations that related to "car"
|
|
|
|
|
Hi All,
I have a problem which is bit tricky for me. The problem is - A table is get display on my screen by another application. I have no rights to access that application. This table is also get refreshed in a time interval of 5 to 10 seconds. Now my problem is to fetch the data from the table displayed on the screen and prepare a separate report for every time interval.
So please help me to write the api for desired functionality.
Thanks in advance.
rks
|
|
|
|
|
You will have to interact with the host operating system for this. Java is really the wrong tool for the job.
|
|
|
|
|
Member 7660635 wrote: So please help me to write the api for desired functionality.
Easy - you can't as stated.
Member 7660635 wrote: I have no rights to access that application.
Did you actually mean that you do not have the ability to change it? As stated you have no way to get to the application at all, which means nothing is possible.
Presuming that you can in fact access the running application then to get to the data depends on the specifics of the application. However in general it would require an OS specific app, so not java, but instead a C/C++ app (which you might or might not be able to find free/shareware/commercial.)
|
|
|
|
|
what kind of "application with a table" is that??
What language is the other application written in?
There might be a reason for that you are not allowed to access - copyright for example is a pretty good one. In that case one has do deny the request.
|
|
|
|
|
|
I have a question,please help me,how can i distinguish and declare 1 method and 1 object in java?
Example:static void main(String[]args)throws Exception{
public static Test(int a){
}
}
Why i have to declare(int a)?
I am a newbie and please help me.
|
|
|
|
|
Why are you trying to declare one method (Test) inside of another method (main)? I don't think Java supports that...
As for "int a", that's an argument to the method (something that gets passed in as input). So if you wanted to call your Test method, you would have to pass in an int, and inside the method you would refer to that int as a.
|
|
|
|
|
on you [age you have somethink like this:
public class nameOfYouClass{
static void main(String[]args)throws Exception{
}
}
If ou want create new class you may create new class write somethink like this:
public class nameOfYouClass{
static void main(String[]args)throws Exception{
nameOfYouNewClass nameOf = new nameOfYouNewClass();
nameOf.newMethod();
}
}
class nameOfYouNewClass{
public void newMethod(){
System.out.println("Hello Workd!!");
}
}
and you will create new Object with method called newMethod.
If you want use class nameOfYouNewClass just create this class in the you main function. And you may use methods from this class(object)
|
|
|
|
|
Work your way through these tutorials[^], and all your questions will be answered.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
I have this the code below:
I used this code based in HashSet to remove duplicates but does not work:
public static <Enterprise> void removeDuplicates(ArrayList<Enterprise> list) {
HashSet<Enterprise> h = new HashSet<Enterprise>(list);
list.clear();
list.addAll(h);
}
public static void main(String args[]) {
ArrayList<Enterprise> array = new ArrayList<Enterprise>();
array.add(new Enterprise("Micro System", 2001));
array.add(new Enterprise("Delta Force", 1980));
array.add(new Enterprise("Micro System", 2001));
array.add(new Enterprise("Golden Mayer", 1781));
removeDuplicates(array);
for (Enterprise item : array) {
System.out.println(item);
}
}
}
public class Enterprise {
private String name;
private int yearFondation;
public Enterprise(String name, int yearFondation) {
this.name = name;
this.yearFondation = yearFondation;
}
public String getname() {
return name;
}
public int getYearFondation() {
return yearFondation;
}
public void setname(String name) {
this.name = name;
}
public void setYearFondation(int yearFondation) {
this.yearFondation = yearFondation;
}
@Override
public String toString() {
return "Enterprise : " + name + " Year of Fondation : " + yearFondation;
}
}
|
|
|
|
|
Enterprise is a class, so when you call
array.add(new Enterprise("Micro System", 2001));
twice, you are actually adding two different Enterprise objects to array; they just happen to have the same data.
If you want the identical objects to be treated as if they were the same object, unfortunately I don't recall how HashSet does the comparisons, but I'm guessing you'll either have to override equals or hashCode on the Enterprise class.
|
|
|
|
|
It does comparisons with equals and hashCode, yes. And if you override one you should override the other.
|
|
|
|
|
If you generate hashCode() and equals() in Enterprise class all must works. If you use Eclipse go into Source - > Generate hashCode() and equals()... and Eclipse will generate this code instead of you, if you don't know how to do this.
|
|
|
|
|
Hi People!
I search a educational imap client project without api´s.
Thanks!
|
|
|
|
|
|
I'm rolling my own text system, or trying to anyways...
I cycle through the bitmap to determine the texture coordinates of every character. Then add them to the map via their associated char. Later I cycle through a string to pull the texture coords and add them to the buffer... the coords are correct going in but not pulling out.
private HashMap<Character, float[]> glyphs = new HashMap<Character, float[]>();
glyphs.put(c[i], temp);
float temp[] = glyphs.get(a);
The array returned is the same one for every char sent to the retrieval function. I must be doing this wrong... any help?
EDIT: The coord to be retrieved is the coord of the last thing put into the map.
modified 2-May-12 18:27pm.
|
|
|
|
|
Figured it out... <.>
I wasn't instantiating a new temp each pass. So the last element is stored for every key. Easy fix, just re-instantiate the variable before setting a value and calling put()
|
|
|
|
|
snap! You got it while I was typing (and taking a phone call....)
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
Np, thanks for trying. ^^
|
|
|
|