Questions tagged as 'java'

2
answers

4 errors in an example (java)

class Demo { public static void main(String args[]){ byte x; int a=270; double b =128.128; System.out.println("int converted to byte"); x=(byte) a; System.out.println("a and x "+ a +" "+x); System.out.println("doub...
asked by 03.10.2016 / 22:05
2
answers

Problem mouseListener and JTable

I have a class in which I am implementing the events of a frame and I want to make every time that double-clicking on a table opens another window and shows me the data of that object, I am implementing the mouseListener interface to the class...
asked by 09.09.2016 / 13:01
3
answers

Count Numbers entered in a Scanner

I want to make a program in Java that reads a line from the standard input using the class Scanner . The user will write a line with numbers separated by spaces; for example: 3 10 0 13 4 The program must count how many numbers have...
asked by 12.09.2016 / 19:45
1
answer

Differences between Maven and Gradle

I'm starting with Gradle and I was wondering what are the main differences with Maven when starting a new project in groovy / grails. Note: The question can be considered as opinion and be moderate, I would appreciate it if you help me unders...
asked by 17.09.2016 / 21:18
2
answers

Problem with chess exercise in java

The objective of the program is to print a chessboard, with squares B (white) and N (black), ask for a row and a column and establish a bishop there. So far so good, but the problem comes when you have to modify the board with asterisks in th...
asked by 08.11.2016 / 19:48
1
answer

I have a problem installing java jdk

I have a problem installing java jdk (Windows 7 home premium) 1.-I download it from the official website 2.- I execute it and I get the typical window of want to execute this program and I give it to execute. 3.- Once I gave it to run,...
asked by 31.08.2016 / 04:39
4
answers

Thread / Runnable

I would like to know how to perform some action every 10 seconds, specifically call from main to my method msj() every 10 seconds using the class Thread and I would also like to know how it would be done using the interface...
asked by 27.03.2017 / 21:42
2
answers

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'projectController'

I have been doing a simple application project with Spring MVC and Maven. However, the program still throws me an exception org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'projectController' I pa...
asked by 29.04.2016 / 19:18
1
answer

Convert String to decimals android studio

I'm developing an app in android studio, the app is already somewhat advanced and only things are being fine-tuned, such as sending me through a webservices in asmx which I am consuming with SOAP, sending me a method called CXCPSaldoDocume...
asked by 05.05.2016 / 01:59
1
answer

Parameter "variable ..." in methods [duplicated]

Good, I've come across a new style of variables when using the FileNameExtensionFilter class. The constructor that uses has 2 parameters type String only that the second is different from the ones that I already know, it supports a set of vari...
asked by 05.06.2016 / 01:45