|
If this is question set by your professor, then I strongly suggest you find another course where the teacher actually understands the subject.
In the meantime, exactly what help do you need?
|
|
|
|
|
just help me with the reading and writing part of the program that will read data from the created text file that contains the names and marks of students and then writes the read data to an excell files while commenting on their marks as stated in the questions
|
|
|
|
|
You keep saying "help me" but you fail to say what help you need.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
You can use the Scanner class[^] to read the input file, and follow the link that jschell gave you for writing.
|
|
|
|
|
Thanks Richard MacCutchan, I read through and it was helpful
|
|
|
|
|
|
i want to read from a text file forexample me.txt and copy the text that is in me.txt and write it to a new excel sheet.
|
|
|
|
|
Hi,
How can i Make a function directory count that finds how many directories and sub directories are in a folder, and Make a directory Size recursive function that finds the size of each folder and sub folders.
The following can be an example of the result from your program.
Example result
Dir:c:\test\f1
File:t0.txt size 20 bytes
Folder: f1 size 20 bytes
|
|
|
|
|
|
java code for extracting result from command prompt to applet
|
|
|
|
|
|
what is the code for collecting the information from the ms access database and display in the applets
|
|
|
|
|
|
Am new to java tables in need of a code that can create the following interface of a message display board
|
|
|
|
|
Member 10683102 wrote: the following interface There's nothing following your first sentence.
Apart from that you usually write an interface manually.
|
|
|
|
|
|
I am working in spring MVC project where I need to use jsp form to connect to database. we are using signupservice.java to map the form values to database. I have attached the coding here. I have set the values for firstName and lastName but I want the signupservice.java take the form value instead of assigned value.I tried to change the coding but it is not working.Can anyone suggest me Where I went Wrong????
public void registerStudent(StudentVO studentVO){
System.out.println("*******Student userName*******"+studentVO.getUserName());
studentVO.setFirstName("firstName");
studentVO.setLastName("lastName");
studentVO.setValidationID("VID");
studentVO.setBirthDate(new Date());
studentVO.setGender('M');
studentVO.setGradeLevel(2);
studentVO.setRewardPoints("rewardPoints");
AddressVO addressVO = new AddressVO();
addressVO.setStreetAddress("streetAddress");
addressVO.setCity("city");
addressVO.setState("st");
addressVO.setEmail("email");
addressVO.setZipCode("zip");
studentVO.setAddressVO(addressVO);
Student student = new Student();
student.setUserName(studentVO.getUserAccountVO().getUserName());
student.setFirstName(studentVO.getFirstName());
student.setLastName(studentVO.getLastName());
student.setValidationID(studentVO.getValidationID());
student.setDateCreated(new Date());
student.setBirthDate(studentVO.getBirthDate());
student.setGender(studentVO.getGender());
student.setGradeLevel(studentVO.getGradeLevel());
student.setRewardPoints(studentVO.getRewardPoints());
Address address = new Address();
address.setStreetAddress(studentVO.getAddressVO().getStreetAddress());
address.setCity(studentVO.getAddressVO().getCity());
address.setState(studentVO.getAddressVO().getState());
address.setEmail(studentVO.getAddressVO().getEmail());
address.setZipCode(studentVO.getAddressVO().getZipCode());
address.setDateCreated(new Date());
student.setAddress(address);
UserAccount userAccount = new UserAccount();
userAccount.setUserName(studentVO.getUserAccountVO().getUserName());
userAccount.setUserRole(studentVO.getUserAccountVO().getUserRole());
userAccount.setPassword(studentVO.getUserAccountVO().getPassword());
userAccount.setDateCreated(new Date());
student.setUserAccount(userAccount);
this.studentDAO.registerStudent(student);
}
}">
modified 31-Mar-15 16:58pm.
|
|
|
|
|
program:
import java.sql.;
import java.io.;
import java.lang.*;
class CreateTable2
{
public static void main(String args[])throws Exception
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:si83","SYSTEM","pass");
Statement st=con.createStatement();
String qry="create table sai(eno int primary key,ename varchar(10),sal double)";
st.executeUpdate(qry);
con.close();
}
catch(ClassNotFoundException e)
{
}
}
}
modified 31-Mar-15 12:14pm.
|
|
|
|
|
You don't know if the program worked since you have ignored any exeception that may have occurred.
|
|
|
|
|
how to create italic font in document word using java netbeans?and what is different apache POI and Apache ATKI in netbeans?
|
|
|
|
|
Member 11562051 wrote: how to create italic font in document word Read the documentation for the various settings that can be applied.
Member 11562051 wrote: what is different apache ... Google will help you.
|
|
|
|
|
Hello,
I have to make a small auction app as an exercise but Im lacking knowledge. If there's anyone who wants to earn some money by helping me let me know.
The application has to be like an auction for people to bid on cars.
Leave me a pm for more info.
thanks
|
|
|
|
|
This is my code inside the method:
@Post
public static String getDetails(Representation entity) throws Exception {
String customerId = getQuery().getValues("cus_id");
}
I use this code in Restlet Representation. I try to get the value from the Request API. But I am facing the problem as "Cannot make a static reference to the non-static method getQuery() from the type Resource". Please help me to solve this.
|
|
|
|
|
|
I have to call the method having @Post annotation that is inside the Class that extends the ServerResource. Please help me to clear this issue.
|
|
|
|