+ Link For Assignments, GDBs & Online Quizzes Solution |
+ Link For Past Papers, Solved MCQs, Short Notes & More |
Tags:
+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)
+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)
+ Click Here to Search (Looking For something at vustudents.ning.com?) + Click Here To Join (Our facebook study Group)mujh kuch samj ni arha.........
koi to cs506 my meri help karo............
jdk install kese karna he. aur code ko run kese karna he. pllllz anyone tell.
plzzz .java file upload kre koe
koi Allah ka banda proper solution dy dy....
Error is becuase you are all not having these three files in same folder
there should be three files in same folders like make a folder name mc130400939
in folder there should be three files Test.java then Student.java and input.txt file
then write command in cmd like that
c:\User\dastgeer>cd desktop
c:\User\dastgeer>desktop>cd mc130400939>
c:\User\dastgeer>desktop>cd mc130400939>javac Student.java
c:\User\dastgeer>desktop>cd mc130400939>javac Test.java
its will run
import java.io.PrintStream;
import javax.swing.JFrame;
import javax.swing.JTextField;
import javax.swing.text.BadLocationException;
import javax.swing.text.Document;
import javax.swing.text.JTextComponent;
import javax.swing.text.View;
public class Main
{
public static void main(String[] args)
{
JFrame f = new JFrame("Text Field View");
JTextField tf = new JTextField();
TextView input = (new TextView [findViewById]);R.id.textView1);
TextView input = (new Textview [findViewById]);R.id.textView2);
String buildings = getinput.txt("/home/mjehangir/Desktop/input.txt=True");
//inputObject inputObject = new inputObject(buildings);
inputArray queryArray = new inputArray(buildings);
//queryArray = queryArray.getinputArray(0);
List<String> list = new ArrayList<String>();
for (int i=0; i<queryArray.length(); i++)
{
list.add( queryArray.getString(i) );
}
String text = list.get(0).toString();
String arr[] = text.split(" ");
arr[0] = arr[0].trim();
for(int i=0;i>queryArray.length();++i)
{
input.setText(list[i]);
}
try
{
//tf.setText("name:Ali,Rollnumer:1)
//tf.setText("name:Ahmad,Rollnumer:2,Marks:60");
//tf.setText("name:Aysha,Rollnumer:3,Marks:80");
//tf.setText("name:Hina,Rollnumer:4,Marks:90");
// tf.setText("name:sana,Rollnumer:5,Marks:50");
f.getContentPane().add(tf);
f.pack();
//f.setVisible(true);
f.setSize(400, 200);
f.setVisible(true);
ViewDisplayer.displayViews(tf, System.out);
}catch(Exception e){}
}
}
class ViewDisplayer {
public static void displayViews(JTextComponent comp, PrintStream out) {
View rootView = comp.getUI().getRootView(comp);
displayView(rootView, 0, comp.getDocument(), out);
}
public static void displayView(View view, int indent, Document doc,
PrintStream out) {
String name = view.getClass().getName();
for (int i = 0; i < indent; i++) {
out.print("\t");
}
int start = view.getStartOffset();
int end = view.getEndOffset();
out.println(name + "; offsets [" + start + ", " + end + "]");
int viewCount = view.getViewCount();
if (viewCount == 0) {
int length = Math.min(32, end - start);
try {
String txt = doc.getText(start, length);
for (int i = 0; i < indent + 1; i++) {
out.print("\t");
}
out.println("[" + txt + "]");
} catch (BadLocationException e) {
}
} else {
for (int i = 0; i < viewCount; i++) {
displayView(view.getView(i), indent + 1, doc, out);
}
}
}
}
but srror come pls any one help me
program k end me mazeed } ye bracket lagao end of file while parsing wala error khatam ho jaye ga
to jdk net beans mai kya compile krna hai ??
bhai Average calculate ka code chahey..or ya code input wali file may likhna hy ya test.java wali file main
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We have been working very hard since 2009 to facilitate in learning Read More. We can't keep up without your support. Donate.
We are user-generated contents site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com Page with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List | Moderators Group
All Members | Featured Members | Top Reputation Members | Angels Members | Intellectual Members | Criteria for Selection
Become a Team Member | Safety Guidelines for New | Site FAQ & Rules | Safety Matters | Online Safety | Rules For Blog Post