Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Tags
java x 13
c x 3
jsp x 2
Member Avatar for vartikachandra

i have to store msgs of string type in a file in java.how do i distinguish between 2 msgs.and how shud i delete the first msg in the file. for eg: "My name is abc.I am fbvnfdl.I am a girl." is stored in a file. and "My name is abc.I …

Member Avatar for stultuske
0
202
Member Avatar for vartikachandra

i have made the following code... but i am having problems in accessing it.. [code] //structure for queue struct queue{ int items[MAX]; int front; int rear; }; //decleration of the queues :que_term for the values printed on the terminal struct queue que_mul2,que_mul3,que_mul5,que_sort,que_write,que_term; //initializing the queue void InitQueue(queue &q) { q.front=0; …

Member Avatar for vartikachandra
0
290
Member Avatar for vartikachandra

i have to invoke a servlet from jsp and pass many variables to the servlet. my jsp code is:: [code] <%@ page import="java.io.*" %> <%@ page import="java.lang.*" %> <%@ page import="java.sql.*" %> <%@ page import="javax.servlet.*" %> <%@ page import="javax.servlet.http.*" %> <%@ page import="java.util.*" %> <% String flag1=(String)session.getAttribute("flag"); out.println(flag1); if(flag1=="signin") { …

Member Avatar for peter_budo
0
1K
Member Avatar for vartikachandra

here i have 2 files and im getting a wrong echlon form of the matrix...please help; Linear_Equation.java: package mypack; import java.io.*; public class Linear_Equation{ public static void main(String args[])throws IOException{ int i,j; matrix mat1=new matrix(); int mtx[][]=new int[3][4]; mat1.accept(); mat1.display(); mtx=mat1.echolonform(); System.out.println("\nThe answer is:"); for(i=0;i<3;i++) { System.out.println("\n"); for(j=0;j<4;j++) System.out.print(" "+ …

Member Avatar for vartikachandra
0
907
Member Avatar for vartikachandra

i am trying to accept a 3 by 4 integer matrix from the user and an unable to do so.here is my code. [code] void accept()throws IOException { int i,j; InputStreamReader instream = new InputStreamReader(System.in); BufferedReader stdin = new BufferedReader(instream); System.out.println("\nEnter the coefficients and the constants for the 3 equations …

Member Avatar for vartikachandra
0
128
Member Avatar for vartikachandra

i am trying to retreive the contents of the table in my databse into a html form using servlets in tomcat. here isthe code: [code] import java.io.*; import java.lang.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class ServletusingData extends HttpServlet{ public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ response.setContentType("text/html"); …

Member Avatar for peter_budo
0
129
Member Avatar for vartikachandra

how do i read character by character from a text file?I need to check for "\n" and split the file on it. for eg: I am a girl.I livein acd. My name is sdljnl. usoihuid. So finally i want to delete the 1st msg(line) from thefile so that the file …

Member Avatar for vartikachandra
0
89
Member Avatar for vartikachandra

code:: [code] import java.io.*; import java.util.*; public class Global{ public static int flag=0; } interface filebackedfifoqueue { void put(String msg); String get(); } public class trying{ public static void main(String args[])throws IOException{ int ch=1; String msg; msg = new String(); while(ch!=0) { BufferedReader stdin=new BufferedReader(new InputStreamReader(System.in)); System.out.println("\nMenu"); System.out.println("\n0.EXit"); System.out.println("\n1.Publisher"); System.out.println("\n2.Subscriber"); …

Member Avatar for vartikachandra
0
108