Click here to Skip to main content
15,924,036 members
Home / Discussions / Java
   

Java

 
GeneralRe: Need help with this code Pin
Richard MacCutchan22-Oct-10 3:05
mveRichard MacCutchan22-Oct-10 3:05 
QuestionException in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 Pin
vidhyaej20-Oct-10 0:19
vidhyaej20-Oct-10 0:19 
AnswerRe: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 Pin
TorstenH.20-Oct-10 0:56
TorstenH.20-Oct-10 0:56 
GeneralRe: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 Pin
vidhyaej20-Oct-10 1:03
vidhyaej20-Oct-10 1:03 
GeneralRe: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 Pin
TorstenH.20-Oct-10 1:19
TorstenH.20-Oct-10 1:19 
GeneralRe: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 Pin
vidhyaej20-Oct-10 1:29
vidhyaej20-Oct-10 1:29 
QuestionClasses and methods Pin
vidhyaej19-Oct-10 21:28
vidhyaej19-Oct-10 21:28 
AnswerRe: Classes and methods Pin
Nagy Vilmos19-Oct-10 22:01
professionalNagy Vilmos19-Oct-10 22:01 
Firstly, can you add <pre> tags around your code so that can be read easily.

What you have is class A that has one member variable a and two constructors.
The default constructor A() simply delegates to the constructor taking an argument A(int x).

Example usages would be:
A a1 = new A();   // result is a1.a== 10
A a2 = new A(10); // same as above, a2.a == 10
A a3 = new A(42); // guess



Panic, Chaos, Destruction.
My work here is done.


or "Drink. Get drunk. Fall over." - P O'H

GeneralRe: Classes and methods Pin
vidhyaej19-Oct-10 22:58
vidhyaej19-Oct-10 22:58 
GeneralRe: Classes and methods Pin
Richard MacCutchan19-Oct-10 23:23
mveRichard MacCutchan19-Oct-10 23:23 
GeneralRe: Classes and methods Pin
vidhyaej19-Oct-10 23:41
vidhyaej19-Oct-10 23:41 
GeneralRe: Classes and methods Pin
TorstenH.19-Oct-10 23:27
TorstenH.19-Oct-10 23:27 
GeneralRe: Classes and methods Pin
vidhyaej19-Oct-10 23:43
vidhyaej19-Oct-10 23:43 
QuestionPaint problem in java Pin
tamash_ionut19-Oct-10 13:01
tamash_ionut19-Oct-10 13:01 
AnswerRe: Paint problem in java Pin
Nagy Vilmos19-Oct-10 22:03
professionalNagy Vilmos19-Oct-10 22:03 
AnswerRe: Paint problem in java Pin
TorstenH.19-Oct-10 23:12
TorstenH.19-Oct-10 23:12 
QuestionRe: Paint problem in java Pin
tamash_ionut20-Oct-10 10:45
tamash_ionut20-Oct-10 10:45 
AnswerRe: Paint problem in java Pin
TorstenH.21-Oct-10 23:00
TorstenH.21-Oct-10 23:00 
QuestionGlassfish Deployment error Pin
JDragon31415919-Oct-10 11:09
JDragon31415919-Oct-10 11:09 
AnswerRe: Glassfish Deployment error Pin
Richard MacCutchan19-Oct-10 23:17
mveRichard MacCutchan19-Oct-10 23:17 
AnswerRe: Glassfish Deployment error Pin
TorstenH.19-Oct-10 23:31
TorstenH.19-Oct-10 23:31 
GeneralRe: Glassfish Deployment error Pin
Richard MacCutchan20-Oct-10 1:24
mveRichard MacCutchan20-Oct-10 1:24 
QuestionProcessing JSP-Form using Servlet using AJAX Post method Pin
khurram_shahzad17-Oct-10 7:17
khurram_shahzad17-Oct-10 7:17 
Questionhelp required Pin
Nima Dorji15-Oct-10 5:30
Nima Dorji15-Oct-10 5:30 
AnswerRe: help required Pin
Richard MacCutchan15-Oct-10 6:00
mveRichard MacCutchan15-Oct-10 6:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.