Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavpatilX authored Jun 22, 2024
1 parent bc8f47a commit aa08a13
Show file tree
Hide file tree
Showing 28 changed files with 1,576 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Program486.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import java.util.*;

class Program486
{
public static void main(String Arg[])
{
Scanner sobj = new Scanner(System.in);

System.out.println("Enter string");
String str = sobj.nextLine();

String newstr = str.trim();

String Arr[] = newstr.split(" ");

System.out.println("Number of words are : "+Arr.length);
}
}
20 changes: 20 additions & 0 deletions Program487.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import java.util.*;

class Program487
{
public static void main(String Arg[])
{
Scanner sobj = new Scanner(System.in);

System.out.println("Enter string");
String str = sobj.nextLine();

String data = str.replaceAll("\\s+"," ");

String newstr = data.trim();

String Arr[] = newstr.split(" ");

System.out.println("Number of words are : "+Arr.length);
}
}
Binary file added Program488.class
Binary file not shown.
32 changes: 32 additions & 0 deletions Program488.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import java.util.*;

class Program488
{
public static void main(String Arg[])
{
Student obj1 = new Student("Vaibhav",89);
Student obj2 = new Student("Arshu",89);

obj1.Display();
obj2.Display();
}
}

class Student
{
public String Sname;
public int Marks;
public int Rollno;

public Student(String str , int no)
{
this.Sname = str;
this.Marks = no;
}

public void Display()
{
System.out.println("Name : "+Sname+" Marks : "+Marks);
}
}

Binary file added Program489.class
Binary file not shown.
37 changes: 37 additions & 0 deletions Program489.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import java.util.*;

class Program489
{
public static void main(String Arg[])
{
Student obj1 = new Student("Vaibhav",89);
Student obj2 = new Student("Arshu",89);

obj1.Display();
obj2.Display();
}
}

class Student
{
public String Sname;
public int Marks;
public static int Rollno;

static
{
Rollno = 0;
}
public Student(String str , int no)
{
this.Sname = str;
this.Marks = no;
Rollno++;
}

public void Display()
{
System.out.println("Roll No : "+Rollno+" Name : "+Sname+" Marks : "+Marks);
}
}

42 changes: 42 additions & 0 deletions Program490.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import java.util.*;

class Program490
{
public static void main(String Arg[])
{
Student obj1 = new Student("Vaibhav",89);
Student obj2 = new Student("Madhuri",91);
Student obj3 = new Student("Khushal",80);

obj1.Display();
obj2.Display();
obj3.Display();
}
}

class Student
{
public String Sname;
public int Marks;
public int Rollno;

public static int Generator;

static
{
Generator = 0;
}
public Student(String str , int no)
{
this.Sname = str;
this.Marks = no;
Generator++;
this.Rollno = Generator;
}

public void Display()
{
System.out.println("Roll No : "+Rollno+" Name : "+Sname+" Marks : "+Marks);
}
}

46 changes: 46 additions & 0 deletions Program491.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import java.util.*;

class Program491
{
public static void main(String Arg[])
{
Student obj1 = new Student("Vaibhav",89);
Student obj2 = new Student("Madhuri",91);
Student obj3 = new Student("Khushal",80);

obj1.Display();
obj2.Display();
obj3.Display();
}
}

class Student
{
public String Sname;
public int Marks;
public int Rollno;

public static int Generator;

static
{
Generator = 0;
}
public Student(String str , int no)
{
this.Sname = str;
this.Marks = no;
Generator++;
this.Rollno = Generator;
}

public void Display()
{
System.out.println("Roll No : "+Rollno+" Name : "+Sname+" Marks : "+Marks);
}
}

class DBMS
{

}
23 changes: 23 additions & 0 deletions Program492.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import java.util.*;

class Program492
{
public static void main(String Arg[])
{
LinkedList <Integer>obj = new LinkedList();

obj.add(11);
obj.addLast(897);
obj.add(21);
obj.add(51);
obj.remove();

System.out.println("Data is "+obj);

for (int no : obj)
{
System.out.println(no);
}
}
}

54 changes: 54 additions & 0 deletions Program493.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import java.util.*;

class Student
{
public String Sname;
public int Marks;
public int Rollno;

public static int Generator;

static
{
Generator = 0;
}

public Student(String str, int no)
{
this.Sname = str;
this.Marks = no;
Generator++;
this.Rollno = Generator;
}

public void Display()
{
System.out.println("Roll No : "+Rollno+" Name : "+Sname+" Marks : "+Marks);
}
}

class DBMS
{
public LinkedList <Student> lobj;

public DBMS()
{
lobj = new LinkedList();
}

public void StartDBMS()
{
System.out.println("Marvellous Customised DBMS started succesfully...");
}
}

class Program493
{
public static void main(String Arg[])
{
DBMS dobj = new DBMS();

dobj.StartDBMS();

}
}
Binary file added Program494.class
Binary file not shown.
65 changes: 65 additions & 0 deletions Program494.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import java.util.*;

class Program494
{
public static void main(String Arg[])
{
DBMS dobj = new DBMS();

dobj.StartDBMS();

dobj.Insert("Vaibhav",90);
dobj.Insert("Madhuri",96);
dobj.Insert("Khushal",80);
dobj.Insert("Virat",67);

}
}

class Student
{
public String Sname;
public int Marks;
public int Rollno;

public static int Generator;

static
{
Generator = 0;
}

public Student(String str, int no)
{
this.Sname = str;
this.Marks = no;
Generator++;
this.Rollno = Generator;
}

public void Display()
{
System.out.println("Roll No : "+Rollno+" Name : "+Sname+" Marks : "+Marks);
}
}

class DBMS
{
public LinkedList <Student> lobj;

public DBMS()
{
lobj = new LinkedList();
}

public void StartDBMS()
{
System.out.println("Marvellous Customised DBMS started succesfully...");
}

public void Insert(String str, int no)
{
Student sobj = new Student(str, no);
lobj.add(sobj);
}
}
Loading

0 comments on commit aa08a13

Please sign in to comment.