Questions tagged as 'java'

1
answer

System for legalized market [closed]

I've developed a system for a store that can serve as a store too, I'd like to know what to do to make the system legalized. Do I have to register? Do I have to go to SEFAZ? What document should I bring to where?
asked by 18.05.2017 / 16:22
1
answer

What is the error in this code? [closed]

I did not understand the error of the code. import java.util.Scanner; public class Questao4 { public static void main (String[] args){ Scanner scanner = new Scanner(System.in); double Altura, Fixo, Fixo2, PesoIdeal, Resultado1;...
asked by 14.02.2018 / 16:25
1
answer

Login Screen - I can not log in a user, admin or user [closed]

Users table; create table usuario( usuario_nome varchar(15) not null, usuario_senha varchar(15) not null, primary key (usuario_nome) ); table permission; create table permissao( usuario_nome varchar(15) not null, usuario_permissao varchar...
asked by 28.07.2016 / 18:44
1
answer

Error with constructor

MyCircle c = new MyCircle(2,5,8);/// Instanciei um objeto no main. public class MyCircle { private MyPoint center; private int radius=1; public MyCircle(int x,int y,int radius) { this.center.getX(x); ///na classe MyPoint...
asked by 11.05.2018 / 04:21
1
answer

Method is running 3 times

I've created this method for a validation when the user will type the option that appears on the screen: private int menu; private int menuImprimir; public int getMenu() { return menu; } public void ativarStatus() {...
asked by 15.06.2018 / 06:37
1
answer

Add another check, how to proceed? [closed]

I'd like to know how I can add 1 more verification. I would like to have line 31 checked too. Example: Object obj2 = modelo.getValueAt(linha, 31); In that code here. else if (snreferencia.contains("Sim")) { Object obj = modelo.getValu...
asked by 23.08.2017 / 17:41
1
answer

How do I import a .jar file without using an IDE? (Java)

Ex: I have a .jar file that I need to import to get access to api, how do I get it right in the code? I do not know if I was specific, but how? (Without IDE)     
asked by 24.06.2018 / 20:30
1
answer

How to view .zip files using java for android

I would like to know how to do a program that can view .zip files on android using java, I have been looking for a while and I have not found it (... If possible the easiest way, if there is a ... Thank you!     
asked by 29.07.2016 / 15:29
1
answer

Error in IMC code [closed]

I have the code below, which calculates BMI, can you tell me what the error is? Follow the code: import java.util.Scanner; public class Paciente { public static double calcularIMC(double P,double A){ double imc;...
asked by 06.06.2016 / 21:23
1
answer

How to delete a parent entity without excluding child entities?

How do I, by annotations or methods to exclude, or make a update in a parent entity without being forced to delete the child entity, eg public class Produto{ @Id @GeneratedValue int id; //... @ManyToOne() //fetch.LAZY Categoria categor...
asked by 03.11.2018 / 17:01