36,051 Topics
![]() | |
I've got a java project in which I must replace all v's(big or small) with ag',r and replace all m's(big or small) with ssad, all g's(big or small) with jeb..w and all b's(big or small) with dug>?/. I'm stumped on what to do. I know how to normally replace chars … ![]() | |
hi, i just installed j2ee 1.4 on my pc (windows xp). i've set the path/class path as follows - PATH = C:\Sun\J2EE1.4\AppServer\bin;C:\J2SDK1.4.2_08\BIN CLASSPATH = .;C:\Sun\J2EE1.4\AppServer\lib\j2ee.jar And i've added JAVA_HOME and J2EE_HOME in both environmental and system variables as - JAVA_HOME = C:\j2sdk1.4.2_08 J2EE_HOME = C:\Sun\J2EE1.4 the problem is, whenever i … | |
i am new at using threads can any one send me any program for using multithreads? | |
Hi. I have a Java Applet with an assortment of buttons that is loaded onto an html web page. I would like any given button to run my ASP code which returns a web page containing results from a database query. But I can't figure out how to link the … | |
How can I link my c++ program with html/javascript code? My c++ program should have browser interface....Is cgi the only option.I dont want webserver and cgi...What else can I do? | |
hi , can anyone tell me how to read contents of a CSV file into my java string. and how to convert a CSV file to a Excel file in java . ![]() | |
I want to run my jsp page online on internet hw can run it | |
i am sure that i am way off but i will attach the problem and hope someone can point me in the right direction. thanks in advance for any help given. i am trying to created a program that will write a grading program for a class with the following … | |
Hi, I want to do that i have a fixed center point in a frame. when i enter raduis in textbox and click replot button, i want that lines are drawn originating from that center point in such a way that their end points form a circle. (As children draw … | |
Hi, guys. i'm a newbie in java world,now i confront a question about the inherite classes. [code] class Base { void f() {....} } class Derive1 extends Base { void f() {....} } class Derive2 extends Derive1 { void f() {....} } [/code] i know that if i want to … | |
Hi, I am trying to make a simple jsp program which eneters data eneterd by user in an html form called main.html. This is the code for main.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> Benthic_query </TITLE> </HEAD> <BODY> <form METHOD = POST ACTION="dataConnection.jsp"> Enter the name … | |
Hi, Someone has an idea if we can draw a line between two points with multiple colors i.e. some part of line is red and the rest part is green. Something like that. Regards ![]() | |
Hello everyone, From the available documents from java.sun.com, I can not find rich information about this option, which is used to tune memory of JVM. Are there any samples/documents of this option, like the meaning/function/best practices of this option. Thanks. regards, George | |
I need help making a word frequency counter that also gives percentages of the amount of time the character occured. I am having trouble compiling my program. Thanks. [code]import java.util.*; public class GoodLetterCounter { public static void main(String[] args) { System.out.println("\n-This program will show how many times" + " the … ![]() | |
Hi, I have an assignment that I need help finding out how to add the commission rate for salespeople. I'm to use arrays and methods. The commission rates are as follows: $1000 -- 2999 --> 2% $3000 -- 4999 --> 3.5% $5000 -- 9999 --> 4.25% $10000 and above --> … | |
helli everyone!!...hope your all in good health...jus wondered if someone could please help me...when i try to compile this code, it says "class or interface expected" for public Bank(String bankName) i have tried, unsucessfully, to fix this but i dont understand what i have to do.... please can someone help … | |
[B][COLOR=black]i try to design web page using jsp , i use net beans tool i need video to learn more about jsp ? could any one help me ?[/COLOR][/B] | |
Hi everyone, hope your all well....i was just wondering if someone could pleassseee tell me why this doesnt compile and if they could please correct ti for me??? thank you very much: public class BankAccount { private static int accountCounter = 0; private String ownerName; private String accountNumber; private double … | |
i want to use java to do some data struct problem, but i don't know how to input the data from the consolel can anybody show some cases (for example, input some int data)? the help will be appreciated:cheesy: smallrain ![]() | |
Hello to you all , I am attaching a HW project which i made in Eclipse 3.2 Enviorment. It is a Cube tourney that each game consists 10 players. Round 1 is 100 Games , each winner is sent to the SemiFinal. than 10 Games of Semi - each winner … | |
I have class which extends JTextArea which I want to attach to JFrame. here is constructor for for JTextArea [code] public MoveSelectedFiles() { area = new JTextArea(10, 40); setVisible(true); } [/code] and here is JTextArea is added to JFrame [code] MovedSelectedFiles movedTextArea = new MoveSelectedFiles(); JPanel panelTextArea = new JPanel(); … | |
Hi, I am writing a java application where i am trying to create an arraylist of "Item" objects. An Item has certain methods such as getStartValue(), etc. What i am trying to do is to access an Item within my arraylist using operator[] and then call a method for that … | |
Hi everyone, I have a general poll question. You see i have some software applications that i would be putting on a website. For example some of these applications are a spread sheet, a html processor, a word processor, an archiver/unarchiver and many more. The thing i don't know what … | |
Hey guys I'm a noob but I'm starting to love this community.Only thing is you kinda get burnt out helping people in posts with no real interaction. What do you all think of having two chat applets? One ,lets call it "I'm free", for seeking help with a problem from … | |
hi, i think i have overwritten ActionListener from my compiler( dont know if it is possible). i accidentally saved a file as ActionListener.java and now anything i try to compile that need ActionListener doesnt work. is there a way i can get it back? i already uninstalled and reinstalled my … | |
Hallo! New in Java, and asking a very stupid question: Can i change the icon "?" in showInputDialog? `cause in JOptionPane.X i can do it, like JOptionPane.ERROR_MESSAGE, or JOptionPane.WARNING_MESSAGE. :mrgreen: | |
Could anyone please suggest me how to generate PDF files in Java using iText library. I searched the net but didn't get any good tutorial or code on it.Thanks in advance. | |
Dear friends, i've one serious problem which i've to solve within monday.So anyone have solution to the problem below, plz post it...& thx in advance.... In our application i've designed JInterFrame which is having JTable & 2 Jbuttons. I'm coloring some of the rows in this JTable based on some … | |
please some tell me which book is relvant to create online voting system using jsp thankyou | |
hi. this is harisha, newbie. how to compare two strings in java.:confused: . String id,t; if (id.compareTo(t) > 2) {....} is this correct.while i compile it shows error. reply me soon.. | |
Hey whoever was good enough to take a look at this thread I have to stress I am a complete noob! I picked up "Java programming for the complete beginner" five days ago and here I am with 50% less hair and stuck on a challenge at the end of … | |
Hi, I am running a webapp in Tomcat 5.0 with Axis 1.4 My web app loads on startup. When I make a SOAP call to the webapp (which is a servlet) it takes a new instance of the servlet instead of the original servlet that is already running. The wsdd … | |
hye guys Hi plz help me i need to run following java commands but in console [B][COLOR=blue]CLEAR CPU // printall CPU Registers ( GENERAL purpose Registers , Speical Purpose Registers, Program Counter & flag) [/COLOR][/B] [B][COLOR=blue]KILL // Kill process Id [/COLOR][/B] [B][COLOR=blue]Load // Load a process and suspend it untill … | |
hi!! i'm new to java and need some help! i installed j2sdk on fedora4.it installed successfully.i could also compile & run 2 programs successfully. but after i restarted the computer and tried compiling using javac it gave me an error... javac:symbol lookup error:/usr/lib/libjc.so.6:undefined symbol : ztvn4java3awtgeo118 i tried it so … | |
I wrote code for an assignment that will output 4 triangles, 1 next to the other. It uses the While and nested For loops. The problem is the output is ok for the 1st and 4th triangle but the 2nd and 3rd need to be mirror images of what the … | |
Alright, here's my code... [code] import java.util.Scanner; public class Letter { public static void main(String[] args) { //needed for scanner class Scanner kb = new Scanner(System.in); int charCount = 0; // get users string System.out.println("Please enter a string: "); String userString = kb.nextLine(); // get users character System.out.println("Please enter a … | |
Hey im abit of a novice at all of this programming, but im trying to give it ago anyway. What im wanting to do is write a program that takes an array of words which wil then return ana array which alphabetically come after a certain word, in this case … | |
| |
Could someone please assist me in modifying the following java script code so that it does a word wrap. It currently forms one long long single line. Thank You ..Tim (I've spent 8 hours trying to solve it...frustrated!) <p><b>Q10) Breed is not about traits as much as it is about … | |
The problem An audio signal is sometimes stored as a list of int values. The values represent the intensity of the signal at successive time intervals. In a program these will be stored as an array. Often a small amount of noise is included in the signal. Noise is usually … ![]() | |
Hi, Im trying to use log4j with tomcat. Im developing in eclipse. It seems to be ignoring my properties file and going all messages get logged to the console. This is my properties file: [code]log4j.rootLogger=DEBUG, A4 log4j.appender.A4=org.apache.log4j.DailyRollingFileAppender log4j.appender.A4.File=c:/ccLogs/ccLog.log # Roll the log file at a certain time log4j.appender.A4.DatePattern='.'yyyy-MM-dd-HH-mm # Append … | |
hi! this prgram is supposed show a gif file on a web page. i can't seem to get this to work as it should, even when i copy it word for word. i've tried other small programs that display a picture of your choosing onscreen. but they too never work. … | |
Hi all............. I want to get the database error cord return by the database, to identify the error message and other messages. I am using postgresql database, they have provided their error cords, but still I don’t have any idea about how to do this, please any one can help … | |
actually I went the wrong way I think, below is the the partial code area and the bold shows what needs tobe, but I know I didnt do it right, can anyone show me an example or where to find help? [code] if (myFields[c_shapeNameField].equals(ShapeName.circle)){ [B][COLOR=red]//ASSIGN a new Circle object to … | |
[tex] pls modify this program and reply.[/tex] [QUOTE] I have 3 points ask from u. 1. I could increase Font size and Button sizes But in first form still I cant mange spacing in Box layout which I used as totally fill the form 2. Want to manage Second form … | |
Help! I've read loads of near identical posts on this forum and others about similar problems but i can still not fix this problem. It only started about 1 month ago. In that time I have installed a number of microsoft patches as well as having run ad aware recently … | |
Hi... Ok I have created a form which posts data into a mysql database. I can then read that data from the database with another page. I am trying to add russian text to the database... it says it has been added but it comes back as ????? I can … | |
I am trying to convert and sucessfully run my pettycash program in throughthe eclipse IDE in Java. First Ill show where Im at I am lost afterhere then ill show the petty cash program. I am not sure if I am on the right track and dont understand how to … | |
Hi everyone, I am currently trying to use the HTML preformat tags in a JTextPane using the the HTMLDocument class. This is the function where i apply the preformating [CODE] public void preformat(String str6) { SimpleAttributeSet sas1 = new SimpleAttributeSet(); sas1.addAttribute(HTML.Tag.PRE, str6); //apply the attribute to the selected text //This … |
The End.