one basic programme of Java
Answers
Answered by
0
Answer:
To create a simple java program, you need to create a class that contains the main method. Let's understand the requirement first.
...
Let's create the hello java program:
class Simple{
public static void main(String args[]){
System.out.println("Hello Java");
}
}
Answered by
0
Answer:
import java. io. *;
public class number
{
public static void main( String args[])
{
InputStreamReader= new InputStreamReader(system.in)
BufferedReader=new BufferedReader( System. in)
System. out. println(" enter a number ="+n)
}
}
Similar questions