Error in code

Posts
95
Registration date
Saturday December 4, 2010
Last seen
December 30, 2018
-
Hello,

how to make function like this :


I want java ( graphical interface and write code )

Thank you

System Configuration: Windows / Internet Explorer 11.0
See more 

Your reply

1 reply

Posts
9
Registration date
Thursday December 27, 2018
Last seen
January 15, 2019
4
0
Thank you
In java there is no function "printf", there is "System.out.println"
SO it would looks like:

class PrintHelloWorld {

public static void main(String[] args) {
System.out.println("Hello World!");
}
}
jones0167
Posts
95
Registration date
Saturday December 4, 2010
Last seen
December 30, 2018
1 -
thank you , but , i didn't say that function it's ( java ) , i know it's not for java it's for ( c )
ac3mark
Posts
11176
Registration date
Monday June 3, 2013
Status
Contributor
Last seen
January 18, 2019
1885 -
Hey Jones, this is correct. Or, you could use:

System.out.print(value + ",");
Respond to MiLLy_JJ