40 Topics

Member Avatar for
Member Avatar for superchica08

hello I have done this program that prompts the user to input the length of the sides of a triangle and outputs the shape of the triangle. Using an enumeration type, triangleType, that has the values scalene, isosceles, equilateral, and notTriangle. so the problem i ma having with the program …

Member Avatar for superchica08
0
237
Member Avatar for daudiam

I was reading an SCJP book by Khalid Mughal and I came across a statement [QUOTE]Enum constants are static members[/QUOTE] and another [QUOTE]Enum constant is an instance of its enum type[/QUOTE]. I am unable to reconcile the 2 statements. Are the constants static members or are they instances ? (Instances …

Member Avatar for daudiam
0
361
Member Avatar for Codeburner

Hi is there any difference between the size of a struct type and the size of it's instance? similarly with enum type and it's instance...

Member Avatar for Narue
0
79
Member Avatar for coolshiva

hi frineds can anyone help me to write a program on creating a calender with enumerated data type

Member Avatar for abhimanipal
0
86
Member Avatar for amit.hak50
Member Avatar for jonoj

Hey guys :) I'm making a code and testing it in drjava but at this stage there is just one function I am having trouble with. Here is my code so far [code=java] import java.util.ArrayList; class Player { //instance fields, a name, a place, and an inventory String name; LocationID …

Member Avatar for JamesCherrill
0
154
Member Avatar for griswolf

I need to keep track of the status for a person who registers for an event. This is going to be part of a tool that is administered by non-programmers. Various events will have different sets of status values, and it is possible for several events with distinct or overlapping …

Member Avatar for pritaeas
0
157
Member Avatar for elSifa

I´m sorry if I haven´t investigated enough but I´m not quite an expert in hibernate and I´m tired of looking for something that won´t really solve my specific problem. What I mean is that I am a bit short of time. I have a User class that represents every single …

Member Avatar for quuba
0
2K
Member Avatar for Geekitygeek

I'm currently re-writing a bit of code and i'm in two minds about which way to take it. Advice would be greatly appreciated :) The application is used to control a USB circuit board. The board has 32 analog outputs. The outputs are switched on and off by sending a …

Member Avatar for Geekitygeek
0
191
Member Avatar for ddanbe

Hi all, The following does work, but not as I expected. If I use an enum I normally don't have to prefix it with a class name. Here it seems the only option. Can anyone tell me why? [CODE=c#]namespace ConsoleApplication1 { class Program { static void Main(string[] args) { MyEnums …

Member Avatar for ddanbe
0
88

The End.