System.out.println(...);
Does print a string to stdout
if you want to assign student.toString() to stringthing, then do :
stringthing = student.toString();
And after you can do :
System.out.println(stringthing);
More Related Contents:
- Get variable by name from a String
- Java String variable setting – reference or value?
- How to approach this hackerrank puzzle?
- how to do substring of HttpResponse in android
- How to replace a char with a string
- How do I create a Java string from the contents of a file?
- How to nicely format floating numbers to string without unnecessary decimal 0’s
- Split string to equal length substrings in Java
- Why can’t strings be mutable in Java and .NET?
- Remove all occurrences of char from string
- Java – Convert integer to string [duplicate]
- In Java, is there a way to write a string literal without having to escape quotes?
- How to remove line breaks from a file in Java?
- How can I get the size of an array, a Collection, or a String in Java?
- How to remove duplicate white spaces in string using Java?
- Isn’t the size of character in Java 2 bytes?
- java.lang.IllegalStateException: Scanner closed
- Converting an int to a binary string representation in Java?
- Difference between “char” and “String” in Java
- Fatal Error: Invalid Layout of java.lang.String at value
- String replacement in java, similar to a velocity template
- Starting of Tomcat failed from Netbeans
- How to center a string using String.format?
- Read String line by line
- How to get the last characters in a String in Java, regardless of String size
- How to create variables dynamically in Java? [closed]
- giving ‘java.library.path’ in netbeans for .dll/.so files
- substring index range
- How to replace � in a string
- Extract digits from string – StringUtils Java