Alternative for System.out.println("message") in Java
Questions/Tutorials for any programming language not covered in other sections.
5 posts
Page 1 of 1
Paste this method into your .java file
I JUST STARTED JAVA 1 HOUR AGO!
Code: Select all
Then type public void message(String x, String y, String z) {
System.out.println(x);
System.out.println(y);
System.out.println(z);
}
Code: Select all
and it will print message1, 2, and 3 to a line. With just 1 line of code.message("message1", "message2", "message3");
I JUST STARTED JAVA 1 HOUR AGO!
Java is to easy after C# lol (its almost the same...)
its the same as if you where doing + or - in math lol
public void message(String x, String y, String z) {
System.out.println(20-10);
System.out.println("20-10");
}
the quotes wouldnt make it do the math problem
public void message(String x, String y, String z) {
System.out.println(20-10);
System.out.println("20-10");
}
the quotes wouldnt make it do the math problem
Livengood wrote:its the same as if you where doing + or - in math lolIdc mr.
public void message(String x, String y, String z) {
System.out.println(20-10);
System.out.println("20-10");
}
the quotes wouldnt make it do the math problem
5 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023