Questions tagged as 'java'

2
answers

Run a java Jar from Delphi

I would like to know if there is a way to run a jar through Delphi and give commands to it as if it were a command line. The truth is that I have a java application that no longer has access to the code and it is limited to two commands via c...
asked by 13.04.2015 / 13:47
2
answers

Better performance for a few hits: HashMap or TreeMap?

I usually use the java.util.HashMap<K,V> structure even for small scopes with very few inputs (up to 50). But I've been wondering if the java.util.TreeMap<K,V> structure would not be better for this situation, taking in...
asked by 25.01.2017 / 16:57
2
answers

Inheritance class Object

How does the compiler do to implicitly all classes inherit from object ? This is a behavior adopted in languages such as C #, Java and others. public class Funcionario { } public class Funcionario : Object { } The above example...
asked by 14.11.2016 / 13:31
1
answer

Location of main in a project with MVC pattern

Within a MVC default project where main() of the application should be localized? Thinking a little I figured it was in the model, because it contains the most "complex" parts of code, but I'm not sure.     
asked by 25.11.2015 / 12:22
3
answers

Catch preview image from a video / listFiles () does not work

I'm having two issues with a super simple project I'm developing in which I have not found a solution in the Forum or Google, the project is a Video Management. I'll leave the Github link below for those who are curious, want to refine the pr...
asked by 03.11.2015 / 03:04
2
answers

Can you tell when a record has been added to the bank?

I would like to know the time a record was added to the bank. I'll use this information to show the time a contact was added to my calendar.     
asked by 03.12.2015 / 04:36
4
answers

In inheritance with private attributes, does not the child class take its attributes from the parent class?

The devmedia article says that the private modifier does not give access to their attributes in their daughter classes. It has a table with the modifiers. In inheritance with private attributes, does not the child class take its attr...
asked by 15.01.2016 / 19:10
2
answers

Is it possible to copy directory names without copying their contents?

For some time I've done this question about recursive search in folders, and now I need to adapt to a different condition. I need to copy just the names of subfolders from a top folder to a third folder, but without copying the most inter...
asked by 20.02.2017 / 17:04
2
answers

How to make buttons of various formats in java?

I'm creating a little game using Swing, and I would like to make buttons with different formats, the way I choose. For example: a round button, or an eye-shaped button, for example. And if they did, I'd also like to know how to put textures o...
asked by 11.05.2014 / 02:24
4
answers

Return null breaking code

When I search the name of the person in the list of people right, he returns the person but when the return is null it breaks the loop of the code and shows this:    Exception in thread "main" java.lang.NullPointerException       at Cadastr...
asked by 05.04.2014 / 01:13