32,199 Topics

Member Avatar for
Member Avatar for sofien.fkih

Hi everyone I am trying to copy one table from one database to another database, so can someone tell me how to that.

Member Avatar for debasisdas
0
53
Member Avatar for erica86

my problem is asking me to write a program that reads a value (say n) from the user and outputs Hello World n times. Verify that the user has entered an integer. If the input is 3, the output will be Hello World printed three times. I have gotten this …

Member Avatar for stultuske
0
245
Member Avatar for Ashenvale

public int intRet1; public int intRet2; public void IntRandom(int intNumber) { int intNum[] = new int[36]; Random randomGen = new Random(); intNum[0] = randomGen.nextInt(intNumber)+1; do{ intNum[1] = randomGen.nextInt(intNumber)+1; }while(intNum[0] == intNum[1]); intRet1 = intNum[0]; intRet2 = intNum[1]; } today I tried using *java.util.Random* class, but as you can see I …

Member Avatar for Bladtman242
0
152
Member Avatar for jemz

Hi can anyone help me on this..I am tying to change the UIManager. UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel"); This gives me a lot of Exception. Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javax.swing.plaf.synth.SynthLookAndFeel.paintRegion(SynthLookAndFeel.java:364) at javax.swing.plaf.synth.SynthLookAndFeel.update(SynthLookAndFeel.java:328) at javax.swing.plaf.synth.SynthRootPaneUI.update(SynthRootPaneUI.java:120) at javax.swing.JComponent.paintComponent(JComponent.java:778) at javax.swing.JComponent.paint(JComponent.java:1054) at javax.swing.JComponent.paintToOffscreen(JComponent.java:5221) at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:295) at javax.swing.RepaintManager.paint(RepaintManager.java:1206) at javax.swing.JComponent._paintImmediately(JComponent.java:5169) at javax.swing.JComponent.paintImmediately(JComponent.java:4980) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:770) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:728) …

Member Avatar for jemz
0
748
Member Avatar for olive.ventura

string using java??please help..the problem is..inputting your name then reverse it.

Member Avatar for stultuske
0
129
Member Avatar for 47pirates

I want to store a Vector<Vector<Object>> in mysql database. What is the best data Tpye that i can use in mysql and java to store and retrieve the datas.

Member Avatar for stultuske
0
379
Member Avatar for Ashenvale

Hi guys! I found a source code from the net [Click Here](http://www.sourcecodesworld.com/source/show.asp?ScriptId=1159) about creating an address book. Right now I'm trying to learn how to do it myself by reading diff. samples, the thing is I always see this written in the description and I have no idea how to …

Member Avatar for Taywin
0
114
Member Avatar for slim.helu.92

HI.I need advice on the best IDE i can use to code and what are the reasons. Thank you.

Member Avatar for peter_budo
0
171
Member Avatar for Helmyano

Hello .. I wish i don't violate community rules :) I was used to work on the NetBeans IDE Now I am converting to eclipse The problem is that i can't neither create nor find the final executable jar file In NetBeans I just press "clean and build" then the …

Member Avatar for Helmyano
0
153
Member Avatar for tuttu007

/* * error on " byte[] m=args[0].getBytes();" error: array index out of bound exception, help me please */ import java.io.*; import java.net.*; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.SocketException; public class UDPClient { public static void main(String[] args) { System.out.println("client started"); DatagramSocket aSocket = null; try { …

Member Avatar for richieking
0
424
Member Avatar for Banderson
Member Avatar for donjusko

I just want some favorite java codes I can use in my html pages and find them by searching java codes.

Member Avatar for JamesCherrill
0
108
Member Avatar for hwoarang69

hi i am new at game development and i need help getting started. i wanted to create a basic 2d side scroller kind of like mario. i want to create this game in java using slick libary and using a 2d array map. here is what i mean. BBBSSBBBBBSSBBBBBB BBBBBBBBBGBBBBBBBB …

0
71
Member Avatar for mj89

Hi we are developing the KNN data mining classification algorithm and are unable to proceed after a point. We have been able to calculate the Euclidean distance metric and find the three closest neighbours to an instance and ordered them in ascending order. However, with the help of the distance …

Member Avatar for philfv
0
322
Member Avatar for Debi prasad

Hello Friends. i have set my environmental variable path of Microsoft JDBC Driver 4.0 as C:\Program Files\Microsoft JDBC Driver 4.0 for SQL Server\sqljdbc_4.0\enu\sqljdbc4.jar and i have also used the url "com.microsoft.sqlserver.jdbc.SQLServerDriver" in my Class.forName(). But still at run time i get the exception java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver. I am using Microsoft sql …

Member Avatar for NormR1
0
301
Member Avatar for jitendrachd
0
137
Member Avatar for turt2live

Hi there! What I'm trying to do is have multiple lists have the same length (size) so I can iterate easily over them later. I want to "extend" the size of the smaller lists to match that of the largest list without just tacking on entries, I want to distribute …

Member Avatar for JamesCherrill
0
179
Member Avatar for sanket044

import java.io.*; public class NewClass { public static void main(String[] args) { try{ Runtime rt = Runtime.getRuntime(); Process p = rt.exec("cmd"); BufferedReader Pop = new BufferedReader(new InputStreamReader(p.getInputStream())); BufferedWriter Pin = new BufferedWriter(new OutputStreamWriter(p.getOutputStream())); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String newCmd; System.out.print("Enter Command : "); newCmd = br.readLine(); String s; …

Member Avatar for Taywin
0
128
Member Avatar for fpsasm

Hello All, I have been developing a website that has a secure area. At the beginning of the secure page I wrote a scriptlet to check whether the user is logged in. I want to take this scriplet and put it in a javabean. Could any of you guys suggest …

Member Avatar for fpsasm
0
266
Member Avatar for kiranaditya

hi i need to know about technology or tool which require regarding my project. can anyone please help me my project is Universal remote hmi(human machne interface) which should be 1.platform independent 2.should be able to run on any device (pc,tablet,android phone,windows phone) 3. if possible code of all langauge …

0
95
Member Avatar for 2concussions

hello, hello! im probably being really dumb again, but i can't get java to run keyPressed() when i press a key. do i need to initialize the keylistener somewhere? any input is appreciated!(even if it's not help) import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.JPanel; import …

Member Avatar for NormR1
0
304
Member Avatar for 2concussions

i am just trying to populate this array with some information. i have no idea why, but i am getting: java.lang.ArrayIndexOutOfBoundsException: 0 im probably just stupid 0_o... but, here is my code: private boolean populated = false; private int blockList[][] = {}; public void update(){ if(populated == false){ int a …

Member Avatar for NormR1
0
293
Member Avatar for nkothiyal
Member Avatar for hfxdkhrxtr

. hi, i want know how can i convert a java desktop application to java supported mobile application. i have created a java desktop calculator application in **"Net-beans 6.8"**, Now what i need to do to use this application in java supported mobile screen resolution 320x240 can i convert my …

Member Avatar for rithish
0
123
Member Avatar for crL0000

hi im not very good in english .. XD im trying to make a simple text editor that can open and save.. i have a problem in my save code here is the code: JFileChooser jfc = new JFileChooser(); jfc.showSaveDialog(jMenuItem1); File f = jfc.getSelectedFile(); try { FileWriter fr = new …

Member Avatar for NormR1
0
106
Member Avatar for rajhans

Hello , I have a 2D array. It has two columns. I have to find the top 3 elements of the second column and return the corresponding elements of the first column. for example say the 2 D array is as follows: 1 0.33 2 0.4 3 0.6 4 0.2 …

Member Avatar for JamesCherrill
0
160
Member Avatar for EulavValue

Hello all, Currently I am trying to create a program that prompts the user to select a file via JFileChooser, and then continues to use that file to gather information for objects. I have no problem selecting the file from JFileChooser, but I do have a problem reading the correct …

Member Avatar for Taywin
0
153
Member Avatar for lahidzi

Hii.. I am doing project in java and i want to convert it to c#.is it any option available? Thank you..

Member Avatar for lahidzi
0
52
Member Avatar for moblyft

I have two pages one called upload-file.php, this page uploads the image into the database and my folder. My PHP page looks like this. if (move_uploaded_file($_FILES['uploadfile']['tmp_name'], $file)) { $insert=mysql_query("insert into match_item_image set item_id='".$_SESSION["session_temp"]."', image='".$name."', adid='$adid'") or die(mysql_error()); $cc=mysql_insert_id(); echo "success".$cc; My other page consist of a javascript function which displays …

Member Avatar for Taywin
0
231
Member Avatar for phoenix_2000

hey people, I've been experimenting with some new (for me) java techniques, like keybindings. i've got a small app, where the bindings work fine, untill i press a JButton with actionListener. the actionListener doesn't do anything at all, but keybindings fail after i press one of them. here's my code …

Member Avatar for phoenix_2000
0
546

The End.