Error in code

Solved/Closed
jones0167 Posts 106 Registration date Saturday December 4, 2010 Status Member Last seen September 22, 2021 - Updated on Jan 1, 2019 at 12:12 PM
 Blocked Profile - Jan 2, 2019 at 01:22 PM
Hello,

how to make function like this :


I want java ( graphical interface and write code )

Thank you

System Configuration: Windows / Internet Explorer 11.0

1 response

MiLLy_JJ Posts 11 Registration date Thursday December 27, 2018 Status Member Last seen March 29, 2019 7
Dec 29, 2018 at 05:33 AM
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!");
}
}
1
jones0167 Posts 106 Registration date Saturday December 4, 2010 Status Member Last seen September 22, 2021
Dec 30, 2018 at 11:36 AM
thank you , but , i didn't say that function it's ( java ) , i know it's not for java it's for ( c )
0
Blocked Profile
Jan 2, 2019 at 01:22 PM
Hey Jones, this is correct. Or, you could use:

System.out.print(value + ",");
0