Skip to content
This repository was archived by the owner on Nov 1, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions demo.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import java.util.*;
public class array
{
String name;
int age;
void employee(String name,int age)
{
this.name=name;
this.age=age;
}
public static void main(String[] args)
{

employee e1 = new employee("sankeerth",18);
employee e2 = new employee("Sudeep",17);

ArrayList<employee> ar3 =new ArrayList<employee>();
ar3.add(e1);
ar3.add(e2);

Iterator<employee> it=ar3.Iterator();
while(it.hasnext())
{
employee emp=it.next();
System.out.println(emp.name);
System.out.println(emp.age);
}

}

}
12 changes: 12 additions & 0 deletions hello.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class helloworld
{
void getclassName()
{
System.out.println(this.getClass());
}
public static void main(String args[])
{
helloworld cs = new helloworld();
cs.getclassName();
}
}