Questions tagged as 'java'

1
answer

Concept of deadlock in Java

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?
asked by 16.11.2018 / 21:54
3
answers

Reduce jar size in Maven Project

I am generating a jar from a Maven project and the size is absurdly high. What steps can I take to reduce the size of this jar?     
asked by 18.05.2016 / 14:23
2
answers

Selenium problem with get!

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...
asked by 05.05.2014 / 18:15
2
answers

How to convert negative numbers from decimal to hexadecimal

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...
asked by 27.10.2017 / 14:08
2
answers

What are the ways to avoid infinite recursion without using the JsonIgnore annotation in SpringBoot

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...
asked by 30.10.2017 / 00:33
1
answer

Why are you giving this static variable error?

Why are you giving this compile error and how can I resolve this?    Can not make a static reference to the non-static field service     
asked by 03.07.2016 / 21:21
2
answers

How to only get the number after the comma

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 .     
asked by 10.08.2016 / 06:03
2
answers

What is the maximum number of threads supported by Java EE?

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?     
asked by 08.09.2015 / 03:02
2
answers

Double format in Java

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.     
asked by 25.03.2015 / 14:27
3
answers

Site within App

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.     
asked by 06.10.2015 / 02:52