Hi, I'm trying to understand a java concept, I'm trying to get a piece of code to work without changing the main method.
public class TestProg2{
public static void main(String args[]){
String filler1="Rank";
String filler2="Suit";
Card card = new Card();
System.out.println(card);
}
}
class Card{
public String Card(){
String test="of";
return test;
}
}
I keep getting the data location: Card@5a5622