Questions tagged as 'java'

2
answers

How to display several options within a menu in cosola in java?

My question is how to make a kind of menu within another menu. For example, I display in my code 4 options to choose from, in one of them if it is chosen it would be necessary to also display several options to choose from. It would be like a ne...
asked by 26.10.2017 / 01:29
1
answer

What are the problems that can occur over time, by allocating more memory to the java heap?

I have an application that is giving me Heap Space problems, looking at what I did with the profiler of netbeans and other apps, I realized that there are instances that are consuming almost a total of 2.2 GB of memory depending on the case is c...
asked by 26.10.2017 / 21:37
3
answers

Visual Basic saves bad text file

Hi, I'm doing a project with Processing, and Visual Basic. I have an application exported with processing that takes the resolution of the window of a text file. I am programming a launcher in visual basic in which you can select the resolution...
asked by 22.10.2017 / 15:52
1
answer

How to make a Spiral-Snail Tour of a Matrix n * m (not square n * n)

Here I have this code to make a Caracol or Spiral Matrix, its path is from the "0,0" position to the middle of the matrix. However, I do not know how to do the algorithm so that it allows me to enter matrices n * m, that is to say, they are not...
asked by 22.10.2017 / 03:24
1
answer

Math class does not work [closed]

public double getStringToDouble(String x){ return Double.parseDouble(valorMod); } public String getDoubleToString(double x){ cadena = String.valueOf(valorMod); return cadena; } With those methods I transform from String to Double, to...
asked by 21.10.2017 / 23:40
1
answer

Indefinite error when executing the program

Hi, I had this error in the eclipse IDE Here all the code of the program: package paquete; import java.util.Random; import java.util.Scanner; public class Programa { Scanner entrada = new Scanner(System.in); Random aleatorio...
asked by 23.10.2017 / 02:16
1
answer

How to deploy my hosting site without losing the links?

I deployed my Java site with JSF and Primefaces in DailyRazor using the tomcat Manager but it remains in a folder behind the context and I can not make it look direct from the main domain www.misitio.com. I must use www.misitio.com/contexto/f...
asked by 23.10.2017 / 03:00
1
answer

Where and how the error in this line of SQL and Java is corrected

PreparedStatement pps = cn.prepareStatement("UPDATE tb_producto SET cantidad='"+txtcantidad.getText()+"' WHERE nombre='"+txtbuscar.getText()+"'"); Where is the error and how to solve help please!     
asked by 23.10.2017 / 00:04
1
answer

Error updating a record of a DB in SQLServer from JAVA [closed]

I'm trying to make a system in JAVA for hotel room reservations, I'm really new to this, but here I go that I want. Well in JAVA I have everything sorted in packages, a package called Data with all the classes that contain the data of my tabl...
asked by 17.10.2017 / 18:01
1
answer

How can I validate that my vending machine program accepts coins of 1 2 5 and 10 pesos and bills of 20 50 and 100 pesos

bold text Good evening I have a problem I am doing a program that simulates a vending machine of products the conditions are as follows that accepts coins of 1 2 5 and 10 pesos accept tickets of 100 50 and 20 pesos my problem is that when I en...
asked by 18.10.2017 / 00:38