I came across the term deadlock in Java. But I can not understand it. So I would like to ask these questions:
What is a deadlock?
Why and how to avoid a deadlock?
What I want
Open a browser using Selenium, making you go to a website (eg link ) driver.get("http://www.google.com"); and type in its text field a search element.sendKeys("Cheese!"); after finalizing submit form to search el...
I was able to pass an integer number to hexadecimal. The problem now being tested was that the negative numbers do not work with this formula.
Here is the code I have:
public class PPROG_pl6_ex8 {
public static Scanner input = new Scan...
I have a @OneToMany relationship between Produto and TipoProduto where TipoProduto can have multiple Produto s and a Produto can only have TipoProduto .
I would like to list all Produto s...
When I do the 162/11 calculation, the result is 14,72727272727273 . But when I use the code System.out.printf("%.1f", teste); , the number 14,8 is displayed.
I would like a way to save only 8 in a int .
I am analyzing how to rewrite the architecture of a Java program would like to know how many threads the scheduler supports? or how can I infer this amount based on the processing power of my PC / Server / Cluster?
I have the following value 1234.0000 . I would like to format for the following output: 1.234,00 . There may be cases that I will also use 1.234,0 , but I believe doing for the first case the others are similar.
I have a classifieds site, I need to create an Android app from my site, I do not program in Java, can I create an app where the site is displayed in mobile?
Type a site iframe within the app.