Click here to Skip to main content
16,019,983 members
Home / Discussions / Java
   

Java

 
QuestionSystem.exit is always zero Pin
Indrojeet14-Mar-11 0:08
Indrojeet14-Mar-11 0:08 
AnswerRe: System.exit is always zero Pin
Richard MacCutchan14-Mar-11 2:20
mveRichard MacCutchan14-Mar-11 2:20 
AnswerRe: System.exit is always zero Pin
jschell14-Mar-11 8:46
jschell14-Mar-11 8:46 
QuestionArray of Object Pin
future383911-Mar-11 13:11
future383911-Mar-11 13:11 
AnswerRe: Array of Object Pin
shivamkalra11-Mar-11 19:24
shivamkalra11-Mar-11 19:24 
GeneralRe: Array of Object Pin
jschell13-Mar-11 10:02
jschell13-Mar-11 10:02 
GeneralRe: Array of Object Pin
TorstenH.13-Mar-11 23:10
TorstenH.13-Mar-11 23:10 
AnswerRe: Array of Object Pin
jschell13-Mar-11 10:06
jschell13-Mar-11 10:06 
future3839 wrote:
System.out.println(st[1]);


Presumably you are using the standard Sun/Oracle VM. If not then you need to specify what you are using.

Modify this line so it prints something such, for example.

System.out.println("student 1= " + st[1]);

There are two possibilities.
1. Your program still prints nothing. Thus you are not running the code you think you are.
2. It prints the text but not else. That suggests you have a toString() method in the class that prints nothing.
AnswerRe: Array of Object Pin
Richard MacCutchan13-Mar-11 10:35
mveRichard MacCutchan13-Mar-11 10:35 
AnswerRe: Array of Object Pin
shi-fj31-Mar-11 4:50
shi-fj31-Mar-11 4:50 
QuestionGlassFish Pin
future383910-Mar-11 14:07
future383910-Mar-11 14:07 
AnswerRe: GlassFish Pin
TorstenH.10-Mar-11 23:12
TorstenH.10-Mar-11 23:12 
QuestionPDU to text formate Pin
coolashish7-Mar-11 20:53
coolashish7-Mar-11 20:53 
AnswerRe: PDU to text formate Pin
Richard MacCutchan7-Mar-11 22:13
mveRichard MacCutchan7-Mar-11 22:13 
AnswerRe: PDU to text formate Pin
TorstenH.8-Mar-11 23:31
TorstenH.8-Mar-11 23:31 
QuestionWeb Services Pin
sameerrede7-Mar-11 6:28
sameerrede7-Mar-11 6:28 
AnswerRe: Web Services Pin
Pravin Patil, Mumbai7-Mar-11 20:05
Pravin Patil, Mumbai7-Mar-11 20:05 
QuestionShift operations with float and double Pin
Kujtim Hyseni7-Mar-11 0:25
Kujtim Hyseni7-Mar-11 0:25 
AnswerRe: Shift operations with float and double Pin
Richard MacCutchan7-Mar-11 6:53
mveRichard MacCutchan7-Mar-11 6:53 
AnswerRe: Shift operations with float and double Pin
User 75994147-Mar-11 13:57
User 75994147-Mar-11 13:57 
AnswerRe: Shift operations with float and double Pin
David Skelly7-Mar-11 22:22
David Skelly7-Mar-11 22:22 
GeneralRe: Shift operations with float and double Pin
Richard MacCutchan8-Mar-11 0:07
mveRichard MacCutchan8-Mar-11 0:07 
AnswerRe: Shift operations with float and double Pin
TorstenH.10-Mar-11 1:05
TorstenH.10-Mar-11 1:05 
AnswerRe: Shift operations with float and double Pin
parths10-Mar-11 19:09
parths10-Mar-11 19:09 
QuestionJava Java EE Pin
future38396-Mar-11 14:33
future38396-Mar-11 14:33 

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.