Computer Science, asked by awesomenuppc6bvt, 11 months ago

one basic programme of Java

Answers

Answered by Mavneetkaur18
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 ankita3699
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