This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1) Package Name : Working | |
| File : Books.java | |
| public class Book { | |
| private int bookID; | |
| private String title; | |
| private String author; | |
| private boolean isAvailable; | |
| public Book(int bookID, String title, String author, boolean isAvailable) { | |
| this.bookID = bookID; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1) | |
| class Person { | |
| private String name; | |
| private int age; | |
| Person(String name) { | |
| this.name = name; | |
| } | |
| Person(String name, int age) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package GuviAssignment.Guvi1; | |
| import java.util.Scanner; | |
| public class ForLoop { | |
| public static void main(String[] args) { | |
| Scanner obj = new Scanner(System.in); | |
| int u1 = obj.nextInt(); | |
| int u2= obj.nextInt(); | |
| for(int i=u1;i<u2+1;i++) |