Click here to Skip to main content
15,917,481 members
Home / Discussions / Java
   

Java

 
GeneralRe: WhiteSpace Character Pin
Richard MacCutchan7-Mar-22 21:16
mveRichard MacCutchan7-Mar-22 21:16 
GeneralRe: WhiteSpace Character Pin
Sudhanshu_India8-Mar-22 3:45
Sudhanshu_India8-Mar-22 3:45 
GeneralRe: WhiteSpace Character Pin
Dave Kreskowiak8-Mar-22 4:47
mveDave Kreskowiak8-Mar-22 4:47 
GeneralRe: WhiteSpace Character Pin
Sudhanshu_India8-Mar-22 14:54
Sudhanshu_India8-Mar-22 14:54 
GeneralRe: WhiteSpace Character Pin
Victor Nijegorodov8-Mar-22 4:55
Victor Nijegorodov8-Mar-22 4:55 
GeneralRe: WhiteSpace Character Pin
Craig Robbins8-Mar-22 5:01
Craig Robbins8-Mar-22 5:01 
QuestionJava Pin
GJ AVAIYA5-Mar-22 7:51
GJ AVAIYA5-Mar-22 7:51 
AnswerRe: Java Pin
Dave Kreskowiak5-Mar-22 10:29
mveDave Kreskowiak5-Mar-22 10:29 
AnswerRe: Java Pin
Richard MacCutchan5-Mar-22 21:17
mveRichard MacCutchan5-Mar-22 21:17 
QuestionJAVA_REGEX_WHITESPACE _CHARACTER Pin
Sudhanshu_India1-Mar-22 15:01
Sudhanshu_India1-Mar-22 15:01 
AnswerRe: JAVA_REGEX_WHITESPACE _CHARACTER Pin
Richard Deeming1-Mar-22 21:38
mveRichard Deeming1-Mar-22 21:38 
GeneralRe: JAVA_REGEX_WHITESPACE _CHARACTER Pin
Sudhanshu_India2-Mar-22 0:43
Sudhanshu_India2-Mar-22 0:43 
GeneralRe: JAVA_REGEX_WHITESPACE _CHARACTER Pin
Richard Deeming2-Mar-22 2:06
mveRichard Deeming2-Mar-22 2:06 
GeneralRe: JAVA_REGEX_WHITESPACE _CHARACTER Pin
Sudhanshu_India2-Mar-22 14:28
Sudhanshu_India2-Mar-22 14:28 
GeneralRe: JAVA_REGEX_WHITESPACE _CHARACTER Pin
Richard MacCutchan2-Mar-22 21:39
mveRichard MacCutchan2-Mar-22 21:39 
GeneralRe: JAVA_REGEX_WHITESPACE _CHARACTER Pin
Sudhanshu_India3-Mar-22 4:23
Sudhanshu_India3-Mar-22 4:23 
GeneralRe: JAVA_REGEX_WHITESPACE _CHARACTER Pin
RedDk3-Mar-22 16:54
RedDk3-Mar-22 16:54 
GeneralRe: JAVA_REGEX_WHITESPACE _CHARACTER Pin
Richard Deeming3-Mar-22 21:25
mveRichard Deeming3-Mar-22 21:25 
GeneralDynamic Polymorphism Pin
Sudhanshu_India24-Feb-22 2:38
Sudhanshu_India24-Feb-22 2:38 
QuestionRe: Dynamic Polymorphism Pin
Richard MacCutchan24-Feb-22 3:27
mveRichard MacCutchan24-Feb-22 3:27 
AnswerRe: Dynamic Polymorphism Pin
Sudhanshu_India24-Feb-22 4:26
Sudhanshu_India24-Feb-22 4:26 
GeneralRe: Dynamic Polymorphism Pin
Richard MacCutchan24-Feb-22 4:56
mveRichard MacCutchan24-Feb-22 4:56 
GeneralRe: Dynamic Polymorphism Pin
Sudhanshu_India25-Feb-22 0:42
Sudhanshu_India25-Feb-22 0:42 
GeneralRe: Dynamic Polymorphism Pin
Richard MacCutchan25-Feb-22 0:51
mveRichard MacCutchan25-Feb-22 0:51 
In the following lines you have calls to getAddress() ...
Java
System.out.println("Customer Address : " +this.getAddress());

System.out.println("New Customer Address :"+ " "+this.getAddress() );

... But that call returns the Customer.Address object which contains various properties. So when you pass that to the println method the system tries to print it. But since it has no idea how to print an Address object it just prints the class name and its memory address. You need to add a toString method to your Address class that returns the address formatted as a string.
GeneralRe: Dynamic Polymorphism Pin
Sudhanshu_India25-Feb-22 1:09
Sudhanshu_India25-Feb-22 1:09 

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.