35,618 Topics

Member Avatar for
Member Avatar for haritha.devarakonda

Create a new project called petstore_domain create 2 packages one com.anblicks.domain second com.anblicks.domain.test move all domain model in to package one and keep all the tests in package 2 Make the Catalog Class Singleton Class Create a testCatalog Class in the second package create atleast 10 tescases for testing the …

Member Avatar for NormR1
0
687
Member Avatar for trishtren

Hey, im looking for a way to get a double value to follow the IEEE 754 standard, iv seen a number of librarys for it on java but i had my doubts to whether it was a problem that wasnt solved already with a java standard library. The value i …

Member Avatar for trishtren
0
238
Member Avatar for ezekel

Hi, I need some help on my stack i could not input the infix because it will generate error when i compile,and it says that non-static method priority (char)cannot be reference from a static context....Thank you in avdvance. public InfixToPostfix(int size) { stack=new Object[size]; top=0; } public boolean isEmpty() { …

Member Avatar for ezekel
0
586
Member Avatar for ankit.sinha.31521

sir i would like to know how to encrypt an image in java (the classes and how to proceed)

Member Avatar for trishtren
0
584
Member Avatar for psy.blast

import java.util.Scanner; import java.util.*; public class Interest { public static void main(String[]args) { double interest, primary, period, amount, yearly, monthly, daily, weekly, quaterly, bianually, time; Scanner Scanner = new Scanner(System.in); System.out.println(" How much money is the person wanting to loan?"); primary = Scanner.nextInt(); System.out.println("Please enter the rate of interest."); interest …

Member Avatar for steph7
0
249
Member Avatar for 47pirates

How can i change my java program in netbeans(currently) so that i can install my program in any other computer? Which is the currently best tool plzz help

Member Avatar for 47pirates
0
201
Member Avatar for champmanking

Hello. I am new to Java and I am creating a simple applet while I to learn. My problem is that one of my methods doesn't seem to be working. The applet is a simple moving sprite; use arrows to move, ect. I am trying to create a missile using …

Member Avatar for champmanking
0
388
Member Avatar for shandow

hey guy, i found a problems during my project, i write a web apps in jsp html, i found that i can call a java function by succesfully. the scenario is like this : Below is my html code of button, i got two button here, 1 is submit button …

Member Avatar for sunnykeerthi
0
102
Member Avatar for HelloMe

Hello everyone... I have just a simple project where i have to draw a picture (Robot) and on a klick on a button, the Robot turns to the left. My problem is, the Robot turns correctly but the new Robot drawing (position showing the Robot from the left side, back …

Member Avatar for HelloMe
0
199
Member Avatar for hauda67

for (k=0; k<M; k++) for (i=0; i<N; i++){ c[i][k]=0.0; for(j=0;j<P;j++) c[i][k]+ =a[i][j]*b[j][k]; I have implemented the above sequential matrix-matrix multiplication algorithm, but i'm not sure about implementing a method to display the output to verify that the algorithm works as expected.

Member Avatar for NormR1
0
478
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
55
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
246
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
153
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
749
Member Avatar for olive.ventura

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

Member Avatar for stultuske
0
133
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
386
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
116
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
174
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
154
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
425
Member Avatar for jerin francis

hello i want to load one of my table column(employee_id) in to a combobox, and i also want to delete the raws correspondant to any selected item(employee_id) from that table.can u help me please..

Member Avatar for anand01
0
57
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
110
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
72
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
338
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
303
Member Avatar for jitendrachd
0
140
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
182
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
130
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
268

The End.