Skip to content

Instantly share code, notes, and snippets.

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;
1)
class Person {
private String name;
private int age;
Person(String name) {
this.name = name;
}
Person(String name, int age) {
@visionblack3
visionblack3 / ForLoop.java
Created October 23, 2025 18:33
GuviTask1
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++)