Questions tagged as 'enum'

1
answer

Best way to get Enum from its entire ID value in Java

A cordial greeting. I have an ENUM in the following way public enum EnumNumeros { UNO(1), DOS(2), TRES(3); private int id; private EnumNumeros(int id) { this.id = id; } public int getId() {...
asked by 26.01.2018 / 18:06
1
answer

Show by console an Array

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ejercicio3 { class Program { enum direcion { arriba = 1, abajo = 3, derecha = 2, izqu...
asked by 16.10.2018 / 12:10
1
answer

Do an IsSelected in a ComboBox with the SelectedValue [UWP]

I have a ComboBox, which already has some assigned items, loaded by means of an enumeration (Enum): public enum TERCERO_TIPOID : byte { [Display(Name = "Nit")]NIT, [Display(Name = "Cedula Cuidadania")]CC, [Display(Name...
asked by 04.10.2018 / 00:51
1
answer

how to fill a combo using an enum, with spring?

I have the following enum public enum TipoMovimientos { MOVIMI_ALTA(1L,"ALTA"), MOVIMI_BAJA(2L,"BAJA"), MOVIMI_EXTEM(3L,"EXTEMPORANEO"); private Long idTipoMov; private String descTipoMov; private TipoMovimientos(Long idTipoMov, String de...
asked by 01.06.2018 / 04:40
0
answers

How to use JInternalFrame in an enum?

I want to organize the forms of my system, create a enum where I add all the data of each form (title, Querys, Name of the table, etc). It worked great until you try to put the JInternalFrame to which it belongs. What I want to do is have a pr...
asked by 07.05.2018 / 21:54
1
answer

Why does Assertion Error give me?

I have an error when compiling an application that allows you to play the Baccarat game, with a class TestManoDeBacara . I have the class Carta , with its value and its type stick Enum : public enum PaloBarajaFrancesa {...
asked by 08.04.2018 / 11:04
2
answers

enum attribute combox

I have an attribute of type enum {V, M} and I have to assign the value through a combox from a swing application that I am doing from another class of another package, the fact is that I do not know how to invoke the attribute from its class to...
asked by 09.03.2018 / 21:08
1
answer

How to return an entity with enum

How about everyone. I'm trying to return an entity with an enum, not a tuple. Currently I have already returned exceptions but my intention is to have entities by defects, because they are few. I do this to return an exception with enum....
asked by 12.09.2017 / 19:57
2
answers

error when using Enum in JAVA

Sure it is a very silly mistake ..     
asked by 19.12.2017 / 02:15