32,204 Topics

Member Avatar for
Member Avatar for Helpwithjava

package jetman; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.*; //import java.util.Arrays.sort(); public class scoreList { String filePath = "Score.txt"; private ArrayList<Score> scoreArrayList = new ArrayList<Score>(); /** Creates a new instance of scoreList */ public scoreList() { FileWriter writer = null; try { writer = new FileWriter("Scores.txt"); } catch (IOException …

Member Avatar for jwenting
0
92
Member Avatar for rdhiravani

Hi, I have a JTable (call it Log Table) in my code showing Records & below that I have other tables showing some statistics based on new Record Inserted. The Log Table contains 21 columns. Each time a new record fetched is inserted into Log Table as it is & …

0
62
Member Avatar for themailsian

Dear Sir, Can I use SQL query with in the Jave script being used in ASP page. If i can please reffer me some samples code. Actually I have made a form in ASP code it contain a combobox with items from the database. on the selection of any item …

Member Avatar for sbv
0
72
Member Avatar for piers

Something I have noticed with my uni course is that there are so few women on it. Is there some reason why women stay away from the best part of using a computer IE programming in java? am I a bit strange in getting excited when I finally finish a …

Member Avatar for neocoder
0
344
Member Avatar for sachinpatil886

Hi i have written following java application in java and now i wnt to convert it into java applet,so an anybody help me out,plz.thanx in advance. import java.awt.*; import java.io.*; import java.awt.event.*; import javax.swing.*; import java.util.*; import java.text.*; import javax.swing.event.*; import javax.swing.undo.*; import javax.swing.text.*; import javax.swing.KeyStroke.*; public class mynote extends …

Member Avatar for jwenting
0
141
Member Avatar for robertarmerding

I am very new to computer programing. I am in a college class on Java. We have an assignment to record and report election results. At the state level, I need to gather the data from the County level and add the County results to show the state results. I …

Member Avatar for jwenting
0
39
Member Avatar for Koldsoul

My assignment is to use a method to do the pig latin part of a program I have already done. So basically, I have the program written, code is below, but am getting two errors in it. I have not really gone over using strings and returning them to the …

Member Avatar for new_2_java
0
142
Member Avatar for MxDev

hi guys, how to get messages issued by command prompet in java, i mean i could send commands to command prompet, if there's reuslts how could i get those results to be displayed in text field??? thank's

Member Avatar for Ezzaral
0
51
Member Avatar for nate12457
Member Avatar for Kob0724

All this regex stuff has me really confused. How could I just replace all the occurrences of "\\" in a string with "\n"?

Member Avatar for Kob0724
0
131
Member Avatar for Parsu7

I just want to know what happens when this code is written: public static void main(String[] args) throws IOException

Member Avatar for Parsu7
0
129
Member Avatar for gauravmishra

hi i want to know that what does the scale() method of AffineTransform do i mean when we reduce the size of a image does this transform reduces the number of pixels or something else .........

Member Avatar for gauravmishra
0
102
Member Avatar for KimJack

Hello All, I am having a problem with removing a specific item from a linked list. Any advice would be great: Here are some snippets: private Node head; //the head node at the front of the list private Node previous; //element just before the current position private Node current; //refers …

Member Avatar for sohguanh
0
917
Member Avatar for slayer10

Ok, i have been making a chess game program, basically what it is is a chesspiece class and a chess board class, the chessboard class has an 8x8 2-d array of chesspiece objects, then i have my frame, my frame has a parallel 2-d array of Jtoggle buttons, when a …

Member Avatar for slayer10
0
78
Member Avatar for maggie789

Hi, I was wondering if there is a way to split double into its integer part and decimal part. I' working on binary converter, and my teacher gave me 4 steps on how to write the program. I've completed step 1 which is separating number into integer and decimal portion, …

Member Avatar for maggie789
0
955
Member Avatar for StephNicolaou

I'm trying to make a circle appear from a class I've developed to move following the x co-ordinate of the mouse. I've done that part correctly, it's just loading the class...Can anyone tell me why it isn't loading? I do love to solve problems myself but I've been working on …

Member Avatar for Ezzaral
0
226
Member Avatar for Parsu7

Suppose i try to instantiate an abstract class then a checked exception is thrown,but who handles it or how is it handled?

Member Avatar for Parsu7
0
118
Member Avatar for piers

I am currently working on something where I have to make two shapes which extend to a class called 2d shape. I am currently working on my Triangle class which is this: [CODE]lass Triangle extends TwoDShape { String style; Triangle(double width, double height, String style) { super(width,height); } private double …

Member Avatar for piers
0
798
Member Avatar for MikP

Hi all, I'm a n00b at Python and am working on outputting html using pyhtmloo - I've checked the [URL="http://sourceforge.net/docman/index.php?group_id=89844"]pyhtmloo site[/URL] for guidance but no joy there. Hopefully I'll find guidance here... The python code below outputs an html page and what I'd like to do is set the refresh …

0
53
Member Avatar for rajeshwarreddyt

Hi Folks, My requirement is like this : How to get User Name using LDAP when my application URL hitted by user in intranet for example: Suppose Application running on my system and any person in intranet hit the my application URL , now using LDAP i need to find …

Member Avatar for rajeshwarreddyt
0
131
Member Avatar for yo123

The program is broken into two parts: the lexical analyzer and the syntax analyzer plus semantic. The lexical analyzer should recognize the token using DFA and return the token and the value. The syntax and semantic part can be done by using any algorithm that can check for the correct …

Member Avatar for jwenting
0
83
Member Avatar for mdelaossa

Hello, In my java class we've been asked to create a painter program that allows the user to draw on the screen (as with a paintbrush). I had no trouble creating the program and having it perform up to standards with what was asked, but something that troubles me and …

Member Avatar for mdelaossa
0
146
Member Avatar for vladdy19

Could someone help me out I need to change a String such as "asu" I'm thinking of using the ascii but I'm not sure how i could do that

Member Avatar for javaAddict
0
165
Member Avatar for tactfulsaint

Hello EveryOne I need Help here ,i have been trying to view this GUI but it keeps showing me this erroe `NoClassDefFounderError`. Anyones help would be appreciated. import java.awt.*; import java.awt.event.*; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Statement; import javax.swing.*; public class HeartLandHomeFinance2 extends JFrame { JPanel Panel; JLabel …

Member Avatar for Ezzaral
0
114
Member Avatar for jasmin_java

Hello Could anyone help us , we have a minesweeper's game code in java the game is good but has two problem the first one is when you press a mine button the game should be over and you can not press on any other button but our code allow …

Member Avatar for jasmin_java
0
143
Member Avatar for chankya

I want to change the color of the whole row("which is containing different data types in different cells") depending upon the value of one column. Have any idea????? Please help!!!!!!!!!!!!!!!!!!!!!!!1

Member Avatar for Phaelax
0
143
Member Avatar for sugantha

Hi friends, I am using Netbeans 6.0.1 and I've installed MySql on Fedora 8...I 've been able to configure the jdbc-MySql connector that's bundled with Netbeans and I can create tables and query MySql using the Netbeans GUI.So I guess my connection was correct...My connection properties are as follows: Database …

Member Avatar for Ezzaral
0
582
Member Avatar for Rentro

I have a string that looks for example like this: "aabbccddeeffgg" I want to retreive the "ee" or the "cc" value from that string. How can I do that ? The tokenizer is not what I am looking for. I'm looking for the function that allows you to specify that …

Member Avatar for Parsu7
0
209
Member Avatar for toomuchfreetime

Hey can any one help me i'm doing a hangman program and want to display blanks where a to z is. how can i do this? I've got it replacing "a" but can't get it to replace the rest i.e. b to z any help would be appriaciated. [code] show …

Member Avatar for toomuchfreetime
0
115
Member Avatar for spywx2003

private static int readFile (String filename, String[] capacities) the file whose filename is given as a parameter, and fills array of strings representing capacities. Error checking: Each line of the file should be checked for the following errors. Lines of the file that contain errors should not be put in …

Member Avatar for taineechan
0
172

The End.