Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

CS506 - Web Design and Development Assignment no 02 Solution And Discussion due date Dec 11, 2015

Views: 21953

Attachments:

Replies to This Discussion

gui opn hojta h bt empty ara h plzz help :(

ap ne text file ka path galt dia ho ga ya name galt hai jiss waja se aesa ho raha hai 

I think you did add something into your frame.

c mei save e nai hoti security errors

error aa raha hai file compile kartay hoay?

run hota hy us k bad next khuch open nai ho raha

please share the solution here 

import java.awt.GridLayout;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JFrame;
import javax.swing.JLabel;
class Student {

private String name;
private int rollNo;
private int marks;

public Student() {
name = null;
rollNo = 0;
marks = 0;
}

public Student(String name, int rollNo, int marks) {
this.name = name;
this.rollNo = rollNo;
this.marks = marks;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public int getRollNo() {
return rollNo;
}

public void setRollNo(int rollNo) {
this.rollNo = rollNo;
}

public int getMarks() {
return marks;
}

public void setMarks(int marks) {
this.marks = marks;
}


}

javac Student.java

public class Test{
public static void main(String args[]){
try{
FileReader fr = null;
BufferedReader br = null;
fr = new FileReader("input.txt");
br = new BufferedReader(fr);
String line = br.readLine();
while(line != null){
System.out.println(line);
line = br.readLine();
}
fr.close();
}
catch(IOException e){
System.out.println("Mustafa");
}
}
}

Assignment Done.........!!!!

ye gui wala output kaisy aya hy?

please help me...share solution

RSS

© 2022   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service