36,051 Topics

Member Avatar for
Member Avatar for winecoding

I have a generic text file, which can be composed of text data and numerical values, like an article. It can have multiple paragraphs/lines and have various types of delimiters. My general purpose is to tokenize this text file into a string array. I am quite confusing on how to …

Member Avatar for JamesCherrill
0
250
Member Avatar for janice91

Dear experts, I am trying to practice inheritance coding on my own but i have met some difficulties. I ma supposed to come up with a Square Game with M representing the number of squares. For the start, i will be in the square 0 value and playing by throwing …

Member Avatar for JamesCherrill
0
125
Member Avatar for ajaxx195

Hi, I just started learning Java.I had attached the doc file.The doc file is already printed on paper.I want to make a program such that only place left blank should b allowed for user to input data and when user print the paper it should b able to print exactly …

Member Avatar for NormR1
0
116
Member Avatar for mith_cool

I simply want to forward a request of one servlet to another servlet. Authentication Servlet gets a request from a jsp page and thus authenctication servlet passes the request to another Addtocart servlet. AuthenticationServlet Code: [CODE] RequestDispatcher rd= request.getRequestDispatcher("/Addtocart"); rd.forward(request, response); response.sendRedirect("Addtocart"); [/CODE] Addtocart servlet code: [CODE] String pid = …

Member Avatar for Rameshwar Soni
0
122
Member Avatar for chiiqui

[CODE]public void starGame() { boolean gamestatus = true; casesSetup(); Welcome(); showCases(); setladies(); int choice = player.nUser(); myAmount = briefcase[choice].getAmount(); briefcase[choice] = null; cases--; while (gamestatus == true) { offer = player.offer(turn, briefcase); showCases(); if (cases == 25 || cases == 19 || cases == 14 || cases == 10 || …

Member Avatar for chiiqui
0
139
Member Avatar for client_jd

I am working on an online bus ticket booking project in jsp/servlet... using tomcat6 and mysql in netbeans... now i know i have done some really foolish and ancient coding .. but please help me in getting this done ... i am actually stuck in this session thing... look below …

0
75
Member Avatar for esdel

Java seems to be a parasite that lives inside other things I maybe use. It thrives on the ubiquitous scare tactic "Load my latest version or you will be even LESS protected than now" I have read the entire Java "help site". Not a word there about WHY I should …

Member Avatar for jwenting
0
200
Member Avatar for dennysimon

Hi all I try to copy paste from a site java example ,there are 3 files,Main.java,Login.java,and LoginDialog.java. I can compile Login.java ,but when I compile LoginDialog.java,it said that it cannot find symbol Login.authenticate (a method in Login.java) I have check that there is this Login.authenticate method to make clearer I …

Member Avatar for jwenting
0
1K
Member Avatar for krishna501

[CODE] Holidays.jsp: <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert Holidays Data</title> <script src="HolidaysValidation.js" type="text/javascript"></script> <style type="text/css"> #hihint{ position:absolute; right:350px; top:85px; } #hnhint{ position:absolute; right:450px; top:110px; } #mhint{ position:absolute; right:450px; top:130px; } #hdhint{ position:absolute; right:330px; top:160px; } …

0
48
Member Avatar for dahan

Java is the oops language but why we are call the java is plate from independent language.please give me other thing about the java.

Member Avatar for peter_budo
-1
117
Member Avatar for tayabshah

Hi all, I am new in JSP coding. I am designing an example form to submit call the other jsp code. Where i am using jsp:useBean tag. But it does work in eclipse ant. regards, Syed Tayab Shah

0
51
Member Avatar for nagatron

Hello to all java programmers I have a java database problem specifically the auto increment. In my MSAccess I have a table named "[B][COLOR="Red"]Confirm[/COLOR][/B]" and in that table I got two fields, the "[B][COLOR="Red"]confirm[/COLOR][/B]" which is set to text and the "[B][COLOR="Red"]id[/COLOR][/B]" which is set to auto number or auto …

Member Avatar for nagatron
0
969
Member Avatar for isebas

Ok so i just started taking AP Computer Science at my high school and I really have no experience with java (just a little bit with python). So for our fist homework we had to try out a few codes and make some programs. I'm getting a " <identifier> expected …

Member Avatar for isebas
0
243
Member Avatar for lena1990
Member Avatar for Majestics
-2
106
Member Avatar for Jessurider

can anyone tell me how to rotate the inner yellow star within the blue star [CODE=java] import java.applet.Applet; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.geom.Path2D; public class app extends Applet { final static int OFFSET = 30; final static int OFFSETS = 30; public void paint(Graphics g) { Graphics2D …

Member Avatar for Ezzaral
1
156
Member Avatar for mcddewitt

I need help in deciding a good path in learning Java. I have recently passed my Data Structures course and although I still have issues and sometimes need to look thinks up, I feel I have a strong enough grasp to move on with my becoming proficient in Java. I …

Member Avatar for hag++
0
190
Member Avatar for Nox_1031

So I need emergency help in writing a program that does a few simple things. I have a file that is composed of positive, negative and zero integers. Each integer has its own line and I'd say there's about 100 lines. I need help writing a program that will 1. …

Member Avatar for Nox_1031
0
233
Member Avatar for k34b

hi all masters here..i want to ask some question about java. hope you all can answer it.. how to explain the concept of accessing object via reference variable?

Member Avatar for k34b
0
50
Member Avatar for VitiumExMachina

Hey guys, I'm having a problem with uploading files to a remote server. I just want the visitor to be able to upload a file, and have it go into the uploads directory of my website. My website root is "C:\tomcat\webapps\ROOT", and the uploads directory is at "C:\tomcat\webapps\ROOT\uploads". Both "upload.html" …

Member Avatar for luddite
0
200
Member Avatar for Bowsan22

So i posted several days ago about an adding grades to an array, which i managed to figure out. This is the code I currently have. [CODE]public class Grades { public static void main (String[] args) { float result = 0; Scanner scan = new Scanner(System.in); int count = 0; …

Member Avatar for hag++
0
254
Member Avatar for Nathan_11

I am hard up creating a nested loop for this one. can someone help me.Thanks. Output: 181614121 27252321 3634323 454341 54525 6361 772 81 9

Member Avatar for JamesCherrill
-1
120
Member Avatar for lena1990

hi all i want to make the column name in french language can any one help me please ????????thank you

Member Avatar for JamesCherrill
0
71
Member Avatar for sha11e

Can you input a string of text from the console window into a char array? Or do you have to save it in a string, and then do a "s1.getChars( 0, 5, charArray, 0 );" Also, I noticed that you can't initiate a char array using the same syntax as …

Member Avatar for JamesCherrill
0
3K
Member Avatar for chikkisherry

I've written a code tat reads x and y co ordinates from a txt file and drawlines on the panel. i need to save the written geometry on the panel as a jpeg image, can any one help me out wat should be written in the action listener part of …

Member Avatar for JamesCherrill
0
973
Member Avatar for harsimran05

[CODE]import java.awt.*; import javax.swing.*; import java.sql.*; import javax.swing.text.MaskFormatter; import javax.swing.table.DefaultTableModel; import java.util.Vector; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseListener; import java.awt.event.MouseEvent; class MyFrame extends JFrame implements ActionListener,MouseListener{ Container c; JLabel lAccountNo,lAName,lDateofOpng,lAddress,lContactNo,lTotalBalance; JTextField tAName,tContactNo,tTotalBalance; JTextArea tAddress; JFormattedTextField tDateofOpng,tAccountNo; JButton bAdd,bNew,bDelete,bExit,bUpdate; DefaultTableModel mAccthld; JTable tAcctHld; MyFrame(){ c=getContentPane(); setSize(Toolkit.getDefaultToolkit().getScreenSize()); setTitle("Account Holder"); setLayout(null); lAccountNo=new JLabel("AccountNo."); …

Member Avatar for JamesCherrill
0
163
Member Avatar for Episkey

Hey im working on a code where i need to get a certain column of a 2d array and create a 1d array with the information. The information im using is a product list in an aray in thsi format [barcode][price][stock] Now i need to grab the bar codes of …

Member Avatar for Episkey
0
249
Member Avatar for dharma117

[B]Hifriends,[/B] I want to create registeration page with file uploading by use of servlet and jsp

Member Avatar for anand01
0
71
Member Avatar for pooran.c

why do have to import org.apache.struts.validator.[U]DynaValidatorForm[/U]? mainly what is the use of DynaValidatorForm.

0
79
Member Avatar for kostas_213

I have a table called [COLOR="Red"]school[/COLOR] and a table called [COLOR="red"]students[/COLOR]. I have a foreign key in [COLOR="red"]students[/COLOR] called [COLOR="Green"]school_id[/COLOR] which is connected with table [COLOR="Red"]school[/COLOR] , field [COLOR="Green"]id[/COLOR]. I made a form where field **[COLOR="green"]title[/COLOR]** appears to the registration form of the [COLOR="Red"]student[/COLOR]. The problem is that i want …

Member Avatar for anand01
0
152
Member Avatar for sha11e

I made a scanner, took asked the user to input an int, then a String and then another String. But after I put in an int and press enter, it skips the 2 String inputs. Why? How can I fix it?

Member Avatar for NormR1
0
139
Member Avatar for sirlink99

I get this error when I run my applet on a website [CODE] Java Plug-in 1.6.0_26 Using JRE version 1.6.0_26-b03 Java HotSpot(TM) Client VM User home directory = C:\Users\Adam ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump …

Member Avatar for mKorbel
0
517
Member Avatar for mcddewitt

Hello I am trying to figure out how I can use a while loop to construct an object and ask the user if they want to construct another one and add 1 to the name. For instance I am creating an Employee class that I want the name of the …

Member Avatar for NormR1
0
97
Member Avatar for Ssnowlin

I am working on a program with two classes that is supposed to handle hotel information and am getting confused on how to work with an array properly. Here is my code so far: [CODE] public class Hotel { Scanner scan = new Scanner (System.in); public int[] HotelArr = new …

Member Avatar for NormR1
0
173
Member Avatar for fattyJ

So i'm working on a java program where I ask for a file name, read it into an array. My problem is that im using a string tokenizer to delimit my commas and that put the student information into an array object. I have 10 arrays that are supposed to …

Member Avatar for NormR1
0
935
Member Avatar for nickliutw

I'm creating a program that perform store data and retrieve data from the arraylist. I have no clue make the program find the data in Arraylist and display the data that user is looking for. If data is not in the list, the program would print the line say that …

Member Avatar for NormR1
0
599
Member Avatar for Chitru

I don't know am i asking right question or not but my question is: I want to create a simple search site so I've team with different jobs. I have its database part to handle. I should create its database and i have not idea what should i do. I'm …

Member Avatar for anand01
0
87
Member Avatar for bsb_12

An hourly employee is paid at a rate of 125 per hour,from the workers gross pay,12% withheld for income tax,and 15 withheld for union dues. If the worker has 2 of more dependents additional 120 for health insurance. Write a java program that will input the total deduction,basic salary,gross pay …

Member Avatar for NormR1
0
287
Member Avatar for churva_churva

Can someone suggest me what classes I can make in developing a system of a cell shop and also the attributes or the properties of each classes and what method of each classes I can do.... [QUOTE]I really need suggestion [/QUOTE]

Member Avatar for jwenting
-2
93
Member Avatar for kush tomar

can any one help me for some project guidelines on java. i am a final year student and am not confident enough to select project topic... but i think i am good with java concepts.....

Member Avatar for Netcode
0
163
Member Avatar for rajhans

Hi, I am facing problem regarding the element wise comparison of two strings and finding the difference of two Strings where one sting is not sub string of other. More than that Strings are of different length. Let String 1= "1 2 3 4 5" String 2="3 4 5 6 …

Member Avatar for rajhans
0
136
Member Avatar for PHkiDz

please help me in my code the error appears and i can`t figure it out. i used to write a program that will accepts the user input, but only a word then the program will scramble the word that had been inputted by the user and display it on JFrame(WINDOW) …

Member Avatar for peter_budo
0
188
Member Avatar for balu_mtx42

Hai all, Please help me to compare two xml files using vb script or java script. example of xml file [CODE] <table name="uninstall_software" numRows="0" remarks="" schema="dbo"> <column autoUpdated="false" digits="0" id="0" name="swtitle_id" nullable="false" remarks="" size="10" type="int"> <parent column="id" foreignKey="c_uninstall_swtitle_id" implied="false" onDeleteCascade="false" table="software_title"/> </column> <column autoUpdated="false" digits="0" id="1" name="machine_id" nullable="false" remarks="" size="10" …

0
97
Member Avatar for tejesh13

hi,I am final year student of computer engineering and wanting to do my project in java language i.e. also web application.So please suggest me project idea if u have any.

Member Avatar for MooGeek
-1
102
Member Avatar for alteran

I'm trying to create a triangle that would be display along side rectangles and circles after I run NervousShapes. I can't seem to get it right. I try doing it with the math but doesn't create the triangle the way I want it. If anyone one has done the NervousShapes …

Member Avatar for NormR1
0
206
Member Avatar for pro_learner

Guys,i want to wait or sleep statement in a Java Desktop application when button press.I used thread.sleep & wait().But it doesn't work.I have a doubt that those functions are working only for console applications.Is it? or can i use it?Plz help me....

Member Avatar for pro_learner
0
266
Member Avatar for vishal1949

I am making a program in which the program assigns a variable to the numbers 1 - 10. I am suppose to use wait and notify. I put them in but I don't know how to assign the variables to the numbers. My code is and could someone tell me …

Member Avatar for NormR1
0
181
Member Avatar for alteran

I've created a gui for the day of the week program. The problem that I'm having is adding functionality to this program. I would like this program to allows a user to select a month and day from choice menus, and enter a year in a text field. Whenever the …

Member Avatar for NormR1
0
330
Member Avatar for nickliutw

I don't know where did I do wrong here, but it is a compiler error. I was try to create an Arraylist that can store the double value. For some reason, I got a compiler error when I try to create an Arraylist. By the way, the assignment specifically ask …

Member Avatar for nickliutw
0
201
Member Avatar for Duki

Can someone explain why, when I input 'mytag' it does find it? When I debug, it shows the text matches, but the IDs are different. Not sure why that would matter? [code=java] public void RemoveTag() throws IOException, NoSuchTagException{ System.out.printf("Tag to delete: "); BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String tempTagText …

Member Avatar for peter_budo
0
197
Member Avatar for harsimran05

import java.awt.*; import javax.swing.*; import javax.swing.table.DefaultTableModel; import java.util.Vector; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.text.MaskFormatter; import java.sql.*; import java.awt.event.MouseListener; import java.awt.event.MouseEvent; class MyFrame extends JFrame implements ActionListener,MouseListener{ Container c; JLabel lRollNo,lName,lAge,lMarks; JTextField tRollNo,tSName,tMarks; JTextField tAge; DefaultTableModel mStud; JTable tStud; JButton bAdd,bNew,bRemove; MyFrame(){ c=getContentPane(); setLayout(null); setTitle("My Frame"); setSize(800,700); setLocation(10,10); lRollNo=new JLabel("Roll no"); …

Member Avatar for peter_budo
0
161

The End.