Questions tagged as 'java'

1
answer

fill in optionsCollection Struts

I have a question to fill out an OptionsCollection of Struts. I have an Action where I retrieve the data and through the request I pass the result. From here, whatever I put in the option gives me an error. Thanks in advance. I leave the Stru...
asked by 09.10.2018 / 17:09
1
answer

Read production or development properties file in spring boot

I have the following question, how can I read a .properties file from spring boot depending on the environment in which I am? My project structure is as follows: I've read this but I can not make it work. Thank you.     
asked by 09.10.2018 / 20:50
1
answer

String with some characters in asterisks

I need to enter a line of text of the style: [email protected] And to return: p**********[email protected] public static void main(String[] args) { Scanner in = new Scanner(System.in); String email; int longitud = Integ...
asked by 09.10.2018 / 19:19
0
answers

What happens is that Android studio does not recognize me the physical device

Good thing that happens is that when I connect my Samsung j1 physical device to test my applications in android studio, I do not recognize the device and I do not get anything, I do not know if I have the SDKs that are : I would greatly a...
asked by 10.10.2018 / 00:32
0
answers

How to select an element of an object in AngulaJS?

I'm creating a navigation bar and I'm looking for an icon that, in addition to changing the page, changes the icon of gray scales to color. And deactivating the previous menu doing the opposite. <!DOCTYPE html> <html> &...
asked by 09.10.2018 / 23:28
0
answers

how can I solve this code does not print as it should

package Parcial; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; public class NewMain { public static void main(String[] args) { //1024-256-128-64-16-8-4-2 int contador = 0, i = 0, m...
asked by 09.10.2018 / 23:44
0
answers

The code deals with how many empty cells a queue has, everything is fine. The problem is when the tail goes around

package colacicular; import java.util.*; public class cola { int Frente = -1; int Fin = -1; int arreglo[]; int numeroMax = 12; int celdasVacias; public cola() { arreglo = new int[numeroMax]; } public boolean Llena() { if (Fin ==...
asked by 07.10.2018 / 10:43
0
answers

Set Option Selected JSP form

Modify data from form (Selected Option Brands) I am loading all the fields of the database and one is a combobox and what I want is for it to load the value it has and then deploy it to be able to modify this value that is in selected mode....
asked by 03.11.2018 / 02:06
0
answers

Error: the main class was not found or loaded Game I have this error help

package Juego; import java.awt.Canvas; import javax.swing.JFrame; import java.awt.BorderLayout; import java.awt.Dimension; public class Juego extends Canvas{ private static final long serialVersionUID = 1L; private static JFrame ventana; private...
asked by 02.11.2018 / 23:19
0
answers

Because the Json returned by the instagram API Graph does not arrive full

I am currently trying to read the images posted with a hashtag in instagram, the connection has been made correctly, user_id, token etc, but when the Json arrives with the content is not complete, obviously causing an error when reading it. ....
asked by 03.11.2018 / 02:02