Simply using print method is enough, it's like Hello World then! This task doesn't make sense!
How to print it the best way?
Under discussion
Comments (8)
- Popular
- New
- Old
You must be signed in to leave a comment
Anonymous #11263139
28 January 2023, 05:41
"\n " Adding a new line
0
Ivanov
22 June 2019, 21:09
Просто скопируйте эти три иероглифа и вставьте между двух кавычек.
System.out.println("日本語");
+1
Ed Maphis
11 May 2019, 16:51
I think it shows that Java can use Unicode characters.
+1
Ultimate.ITpro
14 October 2018, 07:58
0
yanzy050
13 September 2018, 01:27
does it have another cool ways to print it? I mean another method
0
Don Boody
19 April 2019, 10:48
You can always make your own method that just does the same thing and call that instead.
public class Main {
public static void main(String[] args) {
printSamurai();
}
public static void printSamurai() {
System.out.println("日本語");
}
}
+3
Jack
17 April 2020, 20:21
Don Boody,
when i copy pasted the text it came like this -
what is the /n +2
Sameen
25 August 2018, 10:18
Haha. Yes, like a simple hello world program! :D
0