32,199 Topics

Member Avatar for
Member Avatar for malugirl4

I have just completed my java code for the game engine maze I have been working on. We are told to download MARS and from java code it in assembly. I have never learned assembly. So I am completely lost. I so far downloaded MARS and uploaded my java code. …

Member Avatar for wildgoose
0
5K
Member Avatar for llemes4011

Before I say anything else, I do realize that there are numerous threads on this topic, but I haven't been able to fix my problem. Okay. Well, here's my problem. I'm writing a map editor for the game that I'm working on, and the map is oftentimes much larger than …

Member Avatar for llemes4011
0
129
Member Avatar for masterjiraya

[CODE=JAVA] import javax.swing.*; public class TimeDeposit{ public static void main(String[] args){ String choice1, choice2,monthlySales,income; int value1, value2; // to display value of a variable DecimalFormat num=new DecimalFormat(",###.00"); JOptionPane.showMessageDialog(null,"Monthly Sales In $","Bank", JOptionPane.INFORMATION_MESSAGE); JOptionPane.showMessageDialog(null,"the Interest is 0.025"num.format(monthlySales)+"income is"+num.format(income),"Bank", JOptionPane.INFORMATION_MESSAGE); choice1=JOptionPane.showInputDialog("The time less than: "); value1=Integer.parseInt(choice1); choice2=JOptionPane.showInputDialog("The deposit is greater than: "); …

Member Avatar for cgeier
0
84
Member Avatar for william ndugire

what do i require to develop a dynamic website that will be capable of supporting short message service (sms) from different network provider and give them a chance of registering using their cellphone

0
46
Member Avatar for rugae

I can't figure how to get this going, for every object I create I want to add that to the existing array. I read about arraycopy but I don't know how to increase the existing size of the array and always end up with array out of index error... [code=java]A …

Member Avatar for eng.M4AH
0
161
Member Avatar for Half_Pirate

Hello. I am an international student trying to solve my assignment which requires to implement Circular Linked List. I asked my lecturer to check my work and she said that I solved it but actually still using the normal Linked List (Linear). She hinted me that I need to modify …

Member Avatar for eng.M4AH
0
141
Member Avatar for surima

how to generate number and characters together randomly. I know how to generate numbers randomly, but not getting anywhere with random character generation. Please help.. Thanks

Member Avatar for JamesCherrill
0
150
Member Avatar for ashish2234

Actually what i want to do is that on a click of a button , the selected row of the jTable increments to next row so that i can fetch that row to play the next song...how can i do that???

Member Avatar for TheWhite
0
108
Member Avatar for kashn

Hi, Is it possible to embed a java applet into C#? Like WITHOUT downloading it, as if the applet is included as a resource or something. I made the applet so I do have the source ofcourse, if that makes it any easier. Thanks! Also, Is it possible that I …

0
51
Member Avatar for clc571

So this is going to sound like other posts but I have been racking my brain to figure this out. This code is a mod of one that my instructor posted, he said it was fine to just change the names of variables and submit it. When I did so …

Member Avatar for VernonDozier
0
81
Member Avatar for toucan

I'm trying to run a thread until a mouse event occurs, which will trigger an interrupt to the thread. The problem is that I can't get the thread to stop running in an asynchronous way (i.e. to listen is a mouse event occurred). Instead, what happens is that the thread …

Member Avatar for JamesCherrill
0
177
Member Avatar for jonny_java

I have the code at the bottom of this post: Running [icode]abc x = new abc()[/icode] can often take a long time (minutes or longer) and is only ever necessary if flag is true. If I leave the code as it is below, I get a "x cannot be resolved …

Member Avatar for jonny_java
0
112
Member Avatar for terence6203

Hey guys. I am new to Java programming and I am having a lot of difficulty figuring out how to get the proper functionality out of my first, last, next, and previous buttons. First, I was wondering if my button setup is correct: // helper method that creates panel for …

Member Avatar for terence6203
0
642
Member Avatar for Xessa

[code] package mypackage; import java.security.SecureRandom; import java.util.Random; public class SecureRandomTest { /** * @param args */ public static void main(String[] args) { SecureRandom sr1 = new SecureRandom(); System.out.println("1. SecureRandom object 1. nextInt() result :" + sr1.nextInt()); System.out.println("1. SecureRandom object 2. nextInt() result :" + sr1.nextInt()); System.out.println("1. SecureRandom object 3. nextInt() …

Member Avatar for Xessa
0
317
Member Avatar for get2tk

pls i need help!I am writing a code to turn on and turn off a light bulb between a client side and a server side using sockets in java.The thing communicates but i am having problem puttin it on gui radio buttons .I called the method to sendMesage from the …

Member Avatar for JamesCherrill
0
137
Member Avatar for valleymorning

Dear all, I'm a newbie learning Java. Could you please help me on how to find the length of the longest group of duplicates in an array using Java. Let's say we have an array of integers as follows {9 7 7 7 7 3 2 1 1 5 5 …

Member Avatar for valleymorning
0
108
Member Avatar for dsathsara

I have woking on a Java desktop application which connects to the ISPs webserver database (remote access is allowed) and it works fine on my computer. I'm trying to desploy my application as a webstart application. But when I try to run the JAR file using the JNPL the database …

0
46
Member Avatar for ivanyeates

Im getting an: ERROR: findSuppliersCandy(): Column not found error in my program. i have two related tables. One supplier table and one candy table for different types of candy. the method below is trying to retrieve all the candy entries related to a specific supplier by passing a supplier id …

Member Avatar for veejo
0
98
Member Avatar for axeeffect2002

Hi, I want to develop a desktop application in which I want to render different views on button click. What should I use to achieve this? I thought of going for Swing but I don't have much idea about it. Can we show different views in Swing on button click?

Member Avatar for axeeffect2002
0
69
Member Avatar for kuaimun

Recently I've encountered an error which I'm not sure how it's supposed to be done given my very basic knowledge of Solaris. After building and running the project, this are the message which appear on my output... init: deps-jar: Compiling 1 source file to C:\Documents and Settings\Administrator\SimpleRead\build\classes compile: run: Caught …

Member Avatar for Nathan Campos
0
85
Member Avatar for Nathan Campos

Hello, I'm learning Java ME, remember that i'm already a Java developer, but i was trying to do a simple contact book application, then when it was finished i run it in the WTK emulator, but when i try to add some record it only shows me the message that …

Member Avatar for Nathan Campos
0
253
Member Avatar for MrDiaz

I can connect from the services window but whenever I try to set the code myself on my app it tells me it cannot connect to the database. Here's my code: [CODE=java]import java.sql.*; public class LogBook { public static void main (String[] args) { connectToDB(); } // Connect to the …

Member Avatar for MrDiaz
0
174
Member Avatar for ragnarok511

I am not writing this to spam people. I am trying program that will send the message "What's Up" to all the people on my friends list that are online in AIM. The main problem is how do I get Java to read the friend list, open up the message …

Member Avatar for Dukane
0
76
Member Avatar for MrDiaz

Hi, I've been thinking of ways of creating an application that involves working with data, what would be the best way to accomplish this? With the JavaDB, MySQL or plain text files? The project is fairly simple, the idea at least. It's a set of records for students, each student …

Member Avatar for MrDiaz
0
76
Member Avatar for PeteRico

I am developing an app and was wondering if any software might exist to help. Specifically, I want a simple app that will allow me to take a video or pics of a neighborhood. If possible, I would like software to convert the neighborhood to a 3d cartoon-ish (not absolutely …

0
56
Member Avatar for tankeetanx

[CODE]import java.io.*; public class Calculator{ public static void main(String[] args){ BufferedReader dataIn=new BufferedReader(new InputStreamReader(System.in)); int x=1, y=1; String Str_1,Str_2; System.out.println("Enter an Equation: "); try { Str_1=dataIn.readLine(); System.out.print("Enter another Equation: "); Str_2=dataIn.readLine(); x=Integer.parseInt(Str_1); y=Integer.parseInt(Str_2); x = x+y; x = x-y; x = x*y; x = x/y; } catch(ArithmeticException e) { System.out.println("Divide …

Member Avatar for VernonDozier
0
176
Member Avatar for sotvisal

import java.util.*; class Matrice { private int[][] a; private int row; private int col; public static Scanner in() { return new Scanner(System.in); } public static void out(String m) { System.out.print(m); } public static int readInt(String m) { out(m); return in().nextInt(); } public Matrice() { row=2; col=2; a=new int[row][col]; } public …

Member Avatar for JamesCherrill
0
162
Member Avatar for digitalbeat

I'm working on a program that first launches a frame with various text fields. After they are filled in, the information is submitted by simply clicking the submit button. I have the frame down, the text fields and the buttons, and I have the class where all my data and …

Member Avatar for TheWhite
0
151
Member Avatar for bervin

Okay. I'm in need of desperate help and really hope someone can help me type out the entire code for a simple basic java project. 1)adherence to java naming conventions 2)At least one static method other than main 3)providing int, double and string inputs 4)proper selection construct (switch-case or if-else) …

Member Avatar for TheWhite
0
163
Member Avatar for jadeite100

Hi All: I am using windows 2000 server with Eclipse. In the dost prompt, I ran the file run_sqlldrTest2.cmd and it loaded record into the Oracle database. I tried to do the same thing in java calling the run_sqlldrTest2.cmd. In java it states the "The command line job - -executed …

Member Avatar for dixitworld
0
952

The End.