Advertisement

The java tables are passed to the [duplicate]

2017-08-12

This question already has an answer here: Are the tables passed in value or are they passed by reference in Java? [duplicate] 7 replies In java, passing a table mimics a concept called "pass-by-reference", which means that when an array is passe

Get detailed data from the Android studio adapter

2017-08-12

I have list data, so I want when I click on one of the items, it will display the detail but I do not know how to pass the data to the retail business. So how do you do that? I have tried many ways to find the answers available on the Stack Overflow,

How to initialize a class and form property in it?

2017-08-12

I build a map and try to add nodes such as walls, cameras, doors, etc. ... now, all are composed of shapes such as rectangles, I have already done this, but I try to rework It's as if I had problems with my collision detection algorithm because I can

Modifying the image on editing the JAVA FX combobox

2017-08-12

I am working on a project, the problem I am facing is that I have a combobox and an imageview, the images on imageviews change according to the selection of the values ​​of the checkbox, but I managed to realize some features , currently, whenever I

Run a form after System.exit (0);

2017-08-12

I try to close all open forms with System.exit (0); Then call the connection, but I close the program execution. Is there a way to close everything, then call the connection? Pd: translated with google xD translator cordially private void cerrarSesio

Simulate CompletionException in a test

2017-08-12

I have an HttpClient class that has a function that returns CompletableFuture : public class HttpClient { public static CompletableFuture getSize() { CompletableFuture future = ClientHelper.getResults() .thenApply((searchResults) -> { return searchRe

Initializing the java-multilpe array

2017-08-12

Well, I'm trying to initialize more than one array using this method and this gives me this error as mentioned: all solutions int [] x,y,z=new int [10]; System.out.println("The first element of x:"+x[0]); System.out.println("The second elem

the best way to declare createEntityManagerFactory

2017-08-12

I really work on a Springboot project with JPA. I'm looking for a better implementation, currently it works but I have the impression that it is not the best way @RestController public class inscription { EntityManagerFactory objFactory = Persistence

How to remove overlapping borders

2017-08-12

I work on a program where I try to extract the colored squares of a puzzle. I take a frame of a video capture then find all the outlines. Then I remove the outlines that are not square (this works well but looking for a better method). The main probl

How do I include files in my jar file?

2017-08-12

I'm trying to include some .txt, .png, and other files in my jar file. I created a folder under my src folder called "resources". When running the program from my IDE, the program can find all the files correctly. But as soon as I create a jar f

how to create jTextField.checkEmpty ()

2017-08-12

I have a jTextField and I want to check whether its values ​​are empty or not. So far, I can do it this way: public static JTextField checkEmpty(JTextField jTextField) { if (jTextField.getText().equals(" ") || jTextField.getText().isEmpty()) { r

Benford Law Program in Java

2017-08-12

I do a program in Java to see if Benford's law is actually true. I use BigDecimal, but there has been an error since I implemented it. import java.lang.*; import java.math.BigDecimal; public class BenfordLaw { public static int oneornot(BigDecimal nu