Questions tagged as 'java'

1
answer

Pass an image from one fragment to another

I have an application that in a fragment takes pictures with the camera or the load from the gallery, until there all right, it reaches the camera and also lets me select the photo from the gallery. The problem is that I want to show next the ph...
asked by 20.10.2017 / 00:41
1
answer

Reset JFXDatePicker JavaFX

Good day everyone! I think I'm really enjoying this website that has helped me! THANKS TO ALL! Well here I go Today I realize that in the small application that I am developing I have a problem with the famous DatePickers. The question is the...
asked by 19.10.2017 / 18:49
0
answers

How to generate random numbers that increase their probability after being generated

I have the following code that creates a matrix a predefined size and fills it with empty spaces public class Juego { String tablero[][]= new String[15][35]; public Juego() { for( int i = 0; i < tablero.length; i++){ for(...
asked by 13.10.2017 / 05:40
1
answer

Load file in matrix whose elements in the file are divided by commas

I can not load the data of a text file in a matrix of type Person [2] [2], which are separated by a comma. I have problems when going through all the spaces in the matrix in the file ... I would greatly appreciate your help ...     
asked by 12.10.2017 / 15:05
1
answer

How to make a SETTER in java with types LISTED by keyboard and without keyboard

Good, I do not know how to work with SET and enum, I get the error of:  incompatible types: String can not be converted to Type         this.type = type     
asked by 12.10.2017 / 18:27
0
answers

Return image in a json

I have the second class, the image is saved in the bbdd in the photo variable: public class Personas{ private String name; private Date date; private Blob foto; My question is if I create a rest service and if this will return the pho...
asked by 11.10.2017 / 09:17
1
answer

Convert Binary to Decimal in netbeans

As I convert from binary to decimal through recursion friends, I am implementing my code in this way, but from here I stayed: Public class binarioDecimal{ public int binarioADecimal(int v[], int n){ if(n<0){ return 0; }else{ ret...
asked by 11.10.2017 / 00:32
1
answer

Syntax error, insert "Dimensions" to complete ReferenceType

import java.util.Scanner; public class ModosNormales { public static void main(String[] ar) { Scanner teclado=new Scanner(System.in); int nx,ny,c,n; float lx; float ly; float fn; c=172;...
asked by 09.10.2017 / 23:08
1
answer

Error when capturing a data and performing an operation in JAVA

Good morning everyone, I would like you to help me, I am doing a simple program of a console account, the problem is that I ask the user name and type of operation to perform, if it is withdrawal or consigning the program must perform an acti...
asked by 10.10.2017 / 15:46
2
answers

Does anyone know why they do not recognize the BST class when compiling?

Here is the code for the main class and the BST class And this is the compilation error that appears to me, does anyone know what happens?     
asked by 18.10.2017 / 05:58