So I don't know much about java but I noticed this worked then according to my class notes I should be doing it a different way
Here's what my notes have
System.out.print("hello");
System.out.print(name);
System.out.print("\n");
However I tried this and it also does the same thing. It's shorter so is this an acceptable way to do it or will it break down the road?
System.out.print("hello"+name+"\n);
Also as long as the code runs right my teacher shouldn't care right? It's my first class and I'm not a computer science major.