I recently started coding in Java, I just started a week ago. The previous post was deleted because I did not specify it enough, I am sorry for that. I’ve been having troubles with for, do and while …
Advertisement
Tag: system.out
Is there an example where the Java code repeatedly executes its own code? [closed]
Example: int a = 10; System.out.println(a); How can the value of the variable a be printed again after a restart of the application?
How can I make Java print quotes, like “Hello”?
How can I make Java print “Hello”? When I type System.out.print(“Hello”); the output will be Hello. What I am looking for is “Hello” with the quotes(“”). Answer The double quote character has to be escaped with a backslash in a Java string literal. Other characters that need special treatment include: Carriage return and newline: “r” and “n” Backslash: “\” Single
Advertisement