- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 6
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
Hi, i need help on updating data in mysql using JDBC since im using java.i want to send data from arraylist and it seems and error when i run it.below is my code for update. [CODE] private void update(ArrayList<String> list, int uid) { try { Connection con=null; Class.forName ("com.mysql.jdbc.Driver").newInstance (); … |
|
Re:
Can you guys run this program, I'm having issues running it. [ICODE]import java.io.*; import java.util.*; //class definition public class NumberAdder { //The main function public static void main(String args[]) { //This declares a file to open. File outFile = new File("numbers.dat"); int sumEven = 0; int sumOdd = 0; //File … |
|
Re:
i'm so frustrated about my coding :( now i cant even get it right :( assignment gonna due this coming week T^T and i really need help i hope you guys can really solve my problem for me T^T so here is what i did so far >< [code] import … |
|
Re:
Hi, I want to Map a single key to array of values. Is that possible? |
|
Re:
I created a quote generator and when i click on a person's name, it prints out a random quote of theirs. Now the person has 20 quotes all stored in its own array. How do I get it to print out random quotes tat have not been used, once tehy … |
|
Re:
Hi everyone. I am new to java programming and taking a class in college. I got to a problem which I can do but i don't know the correct way to do it. It says to use mutator and accesor . can you please explain what should i change? I … |
|
Re:
Hey guys, I am making a Java program where it runs on a library. This library classifies my program as a script. So basically, I am scripting. Now I want to make various scripts, but I want them all to have the same layout so that I can have the … |
|
Re:
Hi! I'm looking to be able to add a user created extension to a program I'm making. The extension should be able to execute on it's on accord, then pass control back to the program when it's done. So, Say I click a button (it's got a GUI on it), … |
|
Re:
Is it possible to write java program for controller or programmable interrupt controller? |
|
Re:
Hi all, I'm stumped and can't seem to find an answer on Google. I am running a java application through Eclipse and it connects to mysql. It connects fine if I run it through Eclipse but if I make a standalone jar file and then run it through Window's Vista … |
|
Re:
Dear All, I have a java application which is a listener receiving data from different gps devices. The programme have been working fine. Each time I receive a string it will read process and store into a local database(mysql) and also write into a text file. Off late I notice … |
|
Re:
TEX] I have this code but can not get it to display the numbers the way i want. I want the display 1 21 . . . n-2)......1 (n-1).......1 n (n-1)... 21 My code is[/TEX] [CODE]public class print{ public static void parttens() { int w=4,t=0; int k = 1; int[]array=new … |
|
Re:
How do I split a string by 2 characters? lets say I am parsing a html page, and you have lots of tags such as <html> <title> blah bahl </html> If I wanted to split by <title></title>, how would I do that? my goal, is to get the strings within … |
|
Re:
hai friends, Am developing java project with client server interaction, am getting the Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: Java heap space Exception, i doknow how to solve this ,please help me in this. |
|
Re:
What is the best edition to learn java in basic.... Eg.. JavaSE JavaEE JavaME or if something else..... Is JavaEE [B]good [/B]for begin or [B]not [/B]? Why? What are the main differences between those editions..... |
|
Re:
Reviewed with answer from my quiz, I want to make sure that I understand it right? If not, what is yours? int x=1; int j; for(j=0; j<=2; j++) x=x*j; System.out.print(x); --------------------- answer is x=0 My understanding is since this for loop has no curly bracket, therefore, no loop after the … |
|
Re:
This game is like the game scramble that you play on facebook. Also similar to boggle. Basically you input the dimension of the grid of letters that you want and the dictionary.txt file and it will print you all the words found. It's suppose to find words in all directions … |
|
Re:
i googled for awt learnings then found a thread that awt is not necessary, you can directly go to swing. then i started swing, but i can't underdtand it that easily. now i know the very basic in swing, will you please help me to increase my accuracy by giving … |
|
Re:
Ok I'm stuck on my school work. No I don't want someone to do the work for me but I need a good tutorial or pointers on how to get this assignment done. Write an Java Server Faces application using a MySQL database driver that connects to the registrar database … |
|
Re:
Hi everyone, I'm working on a small project and have run into some problems. Briefly described, what I'm attempting to do is: I've a rather large text file with a different sentence and I need to find all the words in each sentence and add them to some sort of … |
|
Re:
System Specification A local football club wishes to store information on its current squad of players: Each Player’s personal information (first name, last name, age, height and weight) should be recorded in a class Person. Each Player’s record for the season should be stored in a class Player. The information … |
|
Re:
Is it ever acceptable to make instance variables public? If so, when? |
|
Re:
hi can anyone tell me why the netbeans ide generates a null pointer exception. here my code. for class CustomFileFilter [CODE]import java.io.File; public class CustomFileFilter extends javax.swing.filechooser.FileFilter { private String extension; private String description; public void setDescription(String description) { this.description = description; } public void setExtension(String extension) { this.extension = … |
|
Re:
Please help with this program! I wrote & modified this code many time but not quite find a good solution for it. Below are some error after complied. Program problem: Input: student names, student IDs, their courses and letter grades Output to a file in table layout format with: College … |
|
Re:
Hi all, I want to ask a question about replacing specific word in a string for example I have a string of: input = a fast nope e i want to replace word "a", if I use method replace which is: input.replace("a", "hello"); the character a in fast will also … |
|
Re:
Hi! My problem is that i have an object that needs to be in an array however the array must not be the same size each time I create an array. I know that you would use the [ICODE]classType[] objectName={new classType(),new classType(),new classType(),etc};[/ICODE] That would only work if I had … |
|
Re:
I have never programmed a client / server before but I would like to create a game where objects can be passed back and forth between two players who reside on separate machines. An example object would be a game piece and the reason it would be passed is because … |
|
Re:
Hey guys I had some homework in a Java class on Friday. I completed it so I am not looking for answers (I also don't think it will be graded). I was just curious, as a learning exercise, how would you guys improve this and why? Now remember I'm a … |
|
Re:
Hi, im new to this forum and also Java. Im currrently doing my degree 1st year. My lecturer gave me a question on factorial and im unable to solve it. i need to explain why any number of threads can be executing inside of it without causing interference in the … |
|
Re:
HI, a pretty frustrating problem arose. I am not going to post any code this time. This should be straight forward question anyways... :) I have a class that contains a constructor with arrays. Also, a methods to add to the array using scanner class. The problem is, I implemented … |