35,618 Topics

Member Avatar for
Member Avatar for sawant_nitesh

content eg. 1. java.lang.String, 2. java.util.HashMap<Integer, Integer>, 3. java.util.ArrayList<Integer>, 4. java.util.HashMap<Integer, ArrayList<String>>, 5. java.util.HashMap<Integer, ArrayList<ArrayList<String>>>, I need a regex for matching method parameters in Java. I have tried with this one.. ([a-zA-Z\. ]+,)|([a-zA-Z\. ]+<[a-zA-Z\., ]+(<[a-zA-Z\., ]+>)*>[ ]*,) It is matching first 4 strings. But it is not matching 5th one, …

Member Avatar for Freaky_Chris
0
86
Member Avatar for morisboy

Hi, Is it possible to create a jar file (mobile app) from JSP files? I mean instead of using some toolkit to compile the java files and create the jar file, can I do the same using JSP files? Thanks.

Member Avatar for peter_budo
0
120
Member Avatar for jasrose

hi... Iam doin a research project in cluster based bit vector algorithm... i.e. a combination of clustering and bit vector concepts... will you help me to start the implementation...???

0
28
Member Avatar for musikluver4

I just wanna be able to input 10 integer numbers, display the numbers, then be able to modify a specific number I have already entered, then display the new updated numbers again. [code] //Date: 4/6/2010 import java.io.*; public class EnterNumbers { public static void main(String[] args) throws IOException { BufferedReader …

Member Avatar for musikluver4
0
217
Member Avatar for bravo659

[quote] I am working on a homework asisgnment from school and need some help. I am stuck on coding to set a private field to my Box class with three constructors.. It's kind of confusing when dealing with more than one constructor. The following is the code for the box …

Member Avatar for vchandra
0
174
Member Avatar for why1991

I am trying to make a row of decreasing squares with a recursive method, but none of the squares comes up besides the first one. Any ideas where my code is going wrong? [CODE] import java.awt.*; import java.awt.event.*; import java.util.Random; public class Lab19ast { public static void main(String args[]) { …

0
83
Member Avatar for johndoe444

What is the meaning of compiling a regular expression? Not only in java but also in other languages like python has compiled representation of a regular expression. Actually it always bothers me what happens when a regular expression is compiled? All I know is it makes further matching of patterns …

Member Avatar for BestJewSinceJC
0
82
Member Avatar for bigbags911

import java.awt.*; import java.awt.event.*; import javax.swing.*; public class TicTacToeV1 implements ActionListener { /*Instance Variables*/ private JFrame window = new JFrame("Tic-Tac-Toe"); private JButton button1 = new JButton(""); private JButton button2 = new JButton(""); private JButton button3 = new JButton(""); private JButton button4 = new JButton(""); private JButton button5 = new JButton(""); …

Member Avatar for BestJewSinceJC
0
130
Member Avatar for idlackage

Dumb question, but I've searched everywhere and found nothing specific: is it possible for HSB values to translate directly into a colour (eg. a hue of zero equals red) instead of passing them through an RBG conversion? Also, dumber: I'm not understanding the arrrays people are using, for example [URL="http://www.squarebox.co.uk/users/rolf/download/ColourWheel/ColourWheelApplet.java"]here[/URL] …

Member Avatar for idlackage
0
95
Member Avatar for isuruj

I tried to execute following target. [code=xml]<target name="A"> <svn> <checkout url="${svn_url}" destPath="ab"/> </svn> </target>[/code] and I got the error "failed to create task or type svn Cause: The name is undefined." I have TortoiseSVN, ant home is ok, got the antsvn lib and put them into ant_home\lib So I don't …

Member Avatar for jonataschagas
0
51
Member Avatar for falsedimitrii

I want to enable/disable a table cell based on the contents of another cell. e.g. if the reference cell value is "true", then enable the cell, otherwise disable the cell. I have set up isCellEditable() to do this and it works if the reference cell already has a value when …

Member Avatar for falsedimitrii
0
2K
Member Avatar for triplea_2005

Write a Java Class file for the class Account that represents a bank account. Usually, a bank account has a unique account number that is used to identify it. Your class should generate the account number automatically whenever a new account is created. The class should also store the account …

Member Avatar for triplea_2005
0
203
Member Avatar for artanbori

Hi struggling with java - we have a class Structures and Algorithims in which we are supposed to pick up java in 5 weeks Have been pouring over material and searching sites but trouble is when I start to write ends up nothing seems to work unless we copy and …

Member Avatar for artanbori
0
308
Member Avatar for shantuli

hi, can anyone help me to solve the following java problem write a java program for holding a stack of up to 10 characters. pls help me. thanks you shantuli

Member Avatar for usurph
0
101
Member Avatar for picabodaddy

Trying to learn Java on my own with the book "Starting out with java" The question is this Write a class that has three overloaded static methods for calculating the areas of the following geometric shapes: circles rectangles cylinders (it gives the formulas for the are of them) Because the …

Member Avatar for vchandra
0
3K
Member Avatar for deraj8

I am trying to understand how draw graphics to the JPanel class but i have only been able to display one object at a time(unless i draw muiltiple shapes in my extended JPanel class but i dont want that!) [CODE]import java.awt.*; import javax.swing.*; /* Create a new graphics component that …

Member Avatar for mart@efun.ee
0
3K
Member Avatar for Riddlekid

I need to use Scanner and StringTokenizer to find a word then print that line in text area when found it. This is the Search Button's coding : [CODE]private void btnSearchActionPerformed(java.awt.event.ActionEvent evt) { try { Scanner scan = new Scanner(file); String search = txtSearch.getText(); while (scan.hasNextLine()) { line = scan.nextLine(); …

Member Avatar for Riddlekid
0
470
Member Avatar for sohai

Now, I've just done a calculation program. What I need now is to build a [B]Semester[/B] class that will contain information about the list of subjects taken in a semester, the corresponding grades as well as the grade average for that semester. How should i build the class to store …

0
67
Member Avatar for Merosansar

The code for sleeping barber problem. When the status of the barber is set to busy then the customer cannot have a hair cut and is added to the waiting queue. when the customer is set to free then the customer have a hair cut. Here the problem is that …

0
68
Member Avatar for herat_000

I want to shift the value in columns after comparision. I am having problem with the getString command. It results in an error ….my code is like this [code]for(p=1;p<20;p++) { Class.forName("com.mysql.jdbc.Driver"); Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/srch","root",""); Statement stmt2=con.createStatement(); ResultSet rs2=stmt2.executeQuery("select * from "+tbl+"c"+startc+" where keyword='"+sk[i]+"'"); cnt=0; if(rs1.findColumn("count"+p) > 0) { System.out.println("count"+p); cnt=rs2.getInt("count"+p); if(cnt …

Member Avatar for masijade
-1
125
Member Avatar for syamala devi

hi all community people iam an IT student .i have a 2 months free time.i want to do a miny project in java,i have knowledge in java(j2se),swings,jscript. if any one have mini java project ideas then send to me.iam waiting for good suggestions.pls reply me as soon as possible.

Member Avatar for peter_budo
0
449
Member Avatar for kolibrizas

I would like to make a dwg->pdf one, and I also prefer java programming language, but I do not know where shall I start. Are there any good tutorials for any conversions, etc? Thanks!

Member Avatar for stultuske
0
76
Member Avatar for Privoxy

Hi All I have been stuck on this for a number of hours now, really cant workout how I should go about making this work, I am not looking for the correct code, More looking for what I should be looking up and what I have done wrong. What the …

Member Avatar for BestJewSinceJC
0
210
Member Avatar for KSUliz

Hi Everyone. I am taking a class on java, and have made it to chapter 7 without many problems. I am having really bad problems with this, getting an illegal start of expression where it says public void sort....I have tried so many things, I probably even have things out …

Member Avatar for stultuske
0
642
Member Avatar for kesh1000

hi can anyone give me a suggestion as to how i could replace data in dat file. the problem is that if i put the data into a string buffer and call replace it will not change the data in the file but i need that to hapen and the …

Member Avatar for stultuske
0
127
Member Avatar for Colin454

Hi all I am enrolled in abeginners class and am having problems with methods. I keep getting a .class expected and do not know how to fix this. It is at this line that the message appears `total = Circle.area(int radius);`. import javax.swing.JOptionPane; public class Circle { public static void …

Member Avatar for Colin454
0
118
Member Avatar for drbrown3

Ok, using Jgrasp I was given a problem that asked me to design a GUI program to find the weighted average of four test scores. The four test scores and their respective weights are give in the following format....testscore1 weight1 This is what I have so far, the code will …

Member Avatar for masijade
0
460
Member Avatar for zerioni

Ok, so i am quite new to JSP. Working on a big database project, and I'm left scratching my head here. The ugly code below calls the chemical name and chemical id properly, and links the chemical name to a page where the chemical with that id will be viewed, …

Member Avatar for peter_budo
0
82
Member Avatar for c++student01

This is a school project. I need to read jokes from multiple files and show them in separate threads. It complies but I keep getting IndexOutOfBoundsExceptions. Any tips or help you can give would be greatly appreciated. [code] import javax.swing.*; import java.awt.*; import java.io.File; import java.io.*; import java.io.FileNotFoundException; import java.awt.event.*; …

Member Avatar for vchandra
0
142
Member Avatar for nwalser

so my assignment is: For this assignment, your job is to create a program that reads in multiple lines of text, and then produces the translation of that text into the English language variant known as "pig latin". Pig latin works this way: if a word begins with a vowel …

Member Avatar for kvass
0
226

The End.