| | |
Server file input?
![]() |
•
•
Join Date: Nov 2007
Posts: 10
Reputation:
Solved Threads: 0
I don't think this qualifies as cheating on homework.
I am making a Java applet that will input the name of a teacher at our school and output their schedule. When I say schedule, I mean the times they teach and what classes they teach, and where they teach them. I wanted to have 2 classes: a
This is how I planned to make my constructors:
I don't know how to do file input/output though. Everything I see on Google is for client file input, but all I want to do is import some data from the server. How do I do this?
I am making a Java applet that will input the name of a teacher at our school and output their schedule. When I say schedule, I mean the times they teach and what classes they teach, and where they teach them. I wanted to have 2 classes: a
Teacher class and a Course class. Ideally, I'd like to store two giant CSV files on the server alongside the class files that I would be able to import into the applet to make a giant array/arraylist of Courses and Teachers rather than say, hard coding the array into the applet.This is how I planned to make my constructors:
Java Syntax (Toggle Plain Text)
public class Teacher{ public Teacher(String sLastName, String sFirstName, int nBlock1, int nBlock2,...int nBlock8){ } } public class Course{ public Course(int nCourseNumber, String sName, boolean bLong){ } }
I don't know how to do file input/output though. Everything I see on Google is for client file input, but all I want to do is import some data from the server. How do I do this?
•
•
Join Date: Aug 2008
Posts: 29
Reputation:
Solved Threads: 1
•
•
•
•
I don't think this qualifies as cheating on homework.
I am making a Java applet that will input the name of a teacher at our school and output their schedule. When I say schedule, I mean the times they teach and what classes they teach, and where they teach them. I wanted to have 2 classes: aTeacherclass and aCourseclass. Ideally, I'd like to store two giant CSV files on the server alongside the class files that I would be able to import into the applet to make a giant array/arraylist ofCoursesandTeachersrather than say, hard coding the array into the applet.
This is how I planned to make my constructors:
Java Syntax (Toggle Plain Text)
public class Teacher{ public Teacher(String sLastName, String sFirstName, int nBlock1, int nBlock2,...int nBlock8){ } } public class Course{ public Course(int nCourseNumber, String sName, boolean bLong){ } }
I don't know how to do file input/output though. Everything I see on Google is for client file input, but all I want to do is import some data from the server. How do I do this?
i think you dont have to do two class,,one class is enough..
public class Schedule{
public static void main (String args[]){
}
public static String Teacher ((String sLastName, String sFirstName, int nBlock1, int nBlock2,...int nBlock8){
return;
}
public static String Course(int nCourseNumber, String sName, boolean bLong){
}
return;
}
if you do it like this,,your main method will just call those methods,,,but it is still up to you..
•
•
•
•
i think you dont have to do two class,,one class is enough..
public class Schedule{
public static void main (String args[]){
}
public static String Teacher ((String sLastName, String sFirstName, int nBlock1, int nBlock2,...int nBlock8){
return;
}
public static String Course(int nCourseNumber, String sName, boolean bLong){
}
return;
}
if you do it like this,,your main method will just call those methods,,,but it is still up to you..
![]() |
Similar Threads
- insert csv file into mysql through php (PHP)
- upload file using jsp and mysql (JSP)
- Get data out of excel file stored as an image (MS SQL)
- uploading multiple files, 'post' not working off server (works fine off local host) (JSP)
- Upload file without User Interaction (PHP)
- Uploading images on a server (ASP)
- SQL Server 2000 (ASP.NET)
- C#ASP.Net: how to browse the folder list on Server? (C#)
- java client server quiz. interesting!!! (Java)
Other Threads in the Java Forum
- Previous Thread: object count
- Next Thread: Help with component
| Thread Tools | Search this Thread |
911 actionlistener addressbook android api append applet application array arrays automation binary blackberry block bluetooth character chat class client code component consumer csv database desktop developmenthelp eclipse error fractal ftp game givemetehcodez graphics gui html ide image integer j2me j2seprojects japplet java javaarraylist javac javaee javaprojects jni jpanel julia lego linked linux list loops mac map method methods mobile netbeans newbie number objects online oriented panel printf problem program programming project projects properties recursion replaydirector reporting researchinmotion rotatetext rsa scanner se server set singleton sms sort sql string swing test textfields threads time title tree tutorial-sample ubuntu update windows working






