In: Computer Science
Throughout this course, you will be learning about object-oriented programming and demonstrating what you learn by writing some programs in Java. The first step will be to install and integrated development environment (IDE) that will be where you will write and compile your programs. You will also write your first program using Java to show that you have correctly installed the IDE.
The project instructions and deliverables are as follows:
So you are a begineer in java . therefore i am giving you complete steps of how to setup the netbeans IDE .
now your console program .
import java.util.Scanner ;
public class choice
{
public static void main (String args[])
{
Scanner sc = new Scanner(System.in);
System.out.println("enter name of favourite
restaurant");
String restaurant = sc.nextLine();
System.out.println("enter the location of
restaurant");
String location = sc.nextLine();
System.out.println("name your favourite meal in
that restaurant");
String meal = sc.nextLine();
System.out.println("favourite restaurant is : "
+restaurant);
System.out.println("location of restaurant is :
" +location);
System.out.println("favourite meal is : "+
meal);
}
}
here is the snap shot of the code with the output and comments for better understanding
thankyou !!
if you like the answer , a like will be highly appreciated.
for any query feel free to ask.