Ok this is the last question for today,
I'd like to know if theres a "shorter" way to solving this problem, oh and btw, i keep gtting a exception :(
here's the que:
Student number and Marks of all students in final of subject CSCI213 are written into a text file “exam.in”. (5 marks)
Write an application to do the following tasks:
•Find the average of marks of all students...
User Profile
Collapse
-
is there a simpler way of doing this??
-
Readinf from files in java
Hi,
Can anyone please teach me a simple way of reading from a file and closing it, etc.
thanks -
Gui
(A) Complete the program by writing appropriate statements in the places indicated so that the program produces a GUI.
(Note: There are at most 8 statements missing in the main program and 2 import statements are missing.) what I did is indicated by the comments, there are some spaces that i couldnt fill up.
Code:----------- --------------- public class TempConvertGUI extends JFrame implements ActionListener{
-
No your not wasting your time, I seriuosly went through your classes before you even recomended them to me. I agree with abctech -> thanks for taking out the time to answer my problems, I must've been a pain for the last couple of days. Thanks for bearing with me :) Things are much clearer now, just have to see myself tomorrow :s... -
parameters...
hi again,
My instructor mentioned once in class when we were getting details of our exam, that its important to know parameters. We should know about them, how to pass them etc. But i dont know how my instructor will get us to do something with parameters in the exam, becuase when we write programs in eclipse we go to run -> parameters-> apply.....etc.
any suggestions?
thanks -
Thanks for your help r035198x !!!!
When i saw your code i wa ssurprised that it turned out to be that way when i 1st tried it out i had the "name" and "score" as the names of my attributtes for the class students, but then i got confused seeing that they are declared as arrays in the tester program.
I understood the program you did, once again i expected something more complex than that, that's why i got...Leave a comment:
-
pre exam study help needed
Hi,
i've been practicing again......my exam is tomorrow :( and this is another practice question that my instructor told us to practice on, its not that easy, it was from a past final exam paper, so please help me out. I only did one little bit of it, and im 100% sure that its wrong......plea se bear with me :(
Here's how it goes:
Code:public class BadStudentScores { public BadStudentScores() {
-
Im going to do my final exam for my java course this week :( and its such a difficult subject :( I've been preparing myself for it for so long. I've been solving all kinds of questions, but it seems that it cant sink in yet............ <sigh> :(...Leave a comment:
-
Thanks!! how can i open my xml with internet explorer......i s it a long process?
thanks again!...Leave a comment:
-
This is unfair! :( I've been studying java all week and i cant seem to get anything right :( Thanks for your help!!! Hope i pass the exam :(Leave a comment:
-
help with these practice questions!!
Hi again,
I've been solving these questions from past exam papers, and im not entirely confident about my answers. Im hoping that you guys can double check them for me.
These are the questions:
1- Which of the following methods must be over-ridden in order to tell the system how to execute a Thread?
(A) thread()
(B) execute()
(C) start()
(D) run()
2- Which of... -
Hi,
Thanks for your help!! :)
Is this good?? Or do I have it all stuffed up?? :(
[PHP]<?xml version = ”1.0” ?>
<Order>
<Pizza>
<Customer>
<name> My Pizza </name>
<address> Kitchen </address>
<phoneNumber> 065432198 </phoneNumber>
</Customer>
<description>
<size>...Leave a comment:
-
Ohhh ok thanks i'l work on it and post it in the XML forum, i just thought that since this was part of the java course that im doing i should post it here........tha nks alot anyway,...Leave a comment:
-
Ohhh ok thanks i'l work on it and post it in the XML forum, i just thought that since this was part of the java course that im doing i should post it here........tha nks alot anyway,...Leave a comment:
-
Ohhh ok thanks i'l work on it and post it in the XML forum, i just thought that since this was part of the java course that im doing i should post it here........tha nks alot anyway,...Leave a comment:
-
Xml
Hey,
I came across this question, this is the 1st time I write a XML file, and I have no idea if my work is correct, or if thats how its supposed to be.......please give me your feedback:
Consider the following XML file that describes a pizza:
An order for a Pizza in a restaurant, stores the name, address, and the phone number of the customer. It stores also the description of one or more pizzas....Leave a comment:
-
Xml
Hey,
I came across this question, this is the 1st time I write a XML file, and I have no idea if my work is correct, or if thats how its supposed to be.......please give me your feedback:
Consider the following XML file that describes a pizza:
An order for a Pizza in a restaurant, stores the name, address, and the phone number of the customer. It stores also the description of one or more pizzas. A pizza has a... -
Xml
Hey,
I came across this question, this is the 1st time I write a XML file, and I have no idea if my work is correct, or if thats how its supposed to be.......please give me your feedback:
Consider the following XML file that describes a pizza:
An order for a Pizza in a restaurant, stores the name, address, and the phone number of the customer. It stores also the description of one or more pizzas. A pizza has a... -
thanks, i was worried that it might be wrong :s
outofmymind ;)...Leave a comment:
-
please help!!
Hi,
i've been trying to solve some java questions, to prepare for a test. I came across a question and im not sure if my answer is correct or not. Is it ok if you guys check it for me and give me your feedback?
this is the question:
What does the following code do with the array list accounts.
Code:public class Bank { public BankAccount doSomething(int accountNumber)
No activity results to display
Show More
Leave a comment: