Questions tagged as 'java'

2
answers

My exception created by my own java poo does not work

public static void main(String[] args) throws IOException { Operaciones.cargarDatosClientes(); Operaciones.imprimirDatos(); } import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.I...
asked by 13.05.2018 / 00:11
1
answer

Server allows to work concurrently with several clients

I have created the server class, but I am not able to make clients work concurrently with several clients, I have seen tutorials and I am not able to modify my code so that this can be done. Can you help me please? Thank you very much, I leav...
asked by 11.05.2018 / 02:09
0
answers

Conversion of a matrix from String to int in java

for( int i=0;i<10;i++){ if(usuario.equals(matriz[i][0])){ JOptionPane.showMessageDialog(null,"Encontrado"); String n =matriz[1][0]; int ju= Integer.parseInt(n); int vi= Integer.parseInt(matriz[2][0]);...
asked by 11.05.2018 / 02:46
0
answers

JPA persistence 2.0 vs 2.1

I do not know why, but my JPA application with v2.1 persistence.xml does not work for me if I'm not connected to the internet, and instead with v2.0 it does not matter if I have a connection or not. Has anyone happened to you? < persistenc...
asked by 10.05.2018 / 21:30
1
answer

How to add leading zeros to a JTextfied (string type attribute)

Hello, I have a series of codes that contain positive integers that I want to print making them occupy the same space. For example given:    j1       j23       j777 I would like you to have zeros to the left and chains of the type to...
asked by 10.05.2018 / 21:21
0
answers

Program for invoices in Java, with options menu. No GUI

This is the first time I take Java classes (or general programming). I'm stuck with the following; They ask me for a program to control the bills of a company that sells products per liter. I must present a menu of options to enter the data, pre...
asked by 10.05.2018 / 22:39
1
answer

Load Multiple Files and Rename them before saving them

Good morning, my problem is as follows, I am loading multiple files from a web app, the flow is correct, only I have not managed to rename the files to a predefined name standard before saving them in the destination directory. . public void g...
asked by 12.05.2018 / 16:28
0
answers

I have an error in the AdminSQLiteOpenHelper and in the getWritableDatabase

// this is from the bd package com.example.manuu.basededatos3; import android.content.ContentValues; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.support.v7.app.AppCompatActivity; import androi...
asked by 17.05.2018 / 03:21
2
answers

Remote connection failed with MongoDB HELP

The truth is that I am a novice in programming and I have a task that is giving me a headache. It is to create a database in MongoDB that synchronizes with the data with an application in Java in NetBeans . I get it, inser...
asked by 17.05.2018 / 09:30
1
answer

How to send an alert from BD Oracle to Java web

I come with a question that has given me a couple of laps .... I have a Java web app that, among many things, maintains the stock of products, the Oracle database has the table (image) where the data persists. So my query is: Can I use a...
asked by 17.05.2018 / 03:16