32,204 Topics
| |
Hey, I am making a card game of Higher or Lower. Currently an image of one card pops up and you have to guess if the next card is a higher or lower value than the one you can see. My question is, using BlueJ, how do I display two … | |
hi,all in this basic java prog.I want to input all the elements of matrix one and two with commandline argument.please help. Thanks for read this... | |
What is the difference between makin an ArrayList these two difference ways? i know the method will be the same and both will essentially do the same thing. but why two ways to initializing arraylist? [CODE] ArrayList<String> list = new ArrayList<String>(); List<String> myList = new ArrayList<String>(); [/CODE] | |
Hello - quick question, I have created a method which prints a chosen symbol multiple times: - User enters 5 - Print this: ***** **** *** ** * I'm aware of recursion and know how to use it, my method uses it to do the above but I also use … | |
Here is my code at the moment: [code] import java.util.Scanner; class menuOperations { String[] fNames = new String[50]; String[] lNames = new String[50]; String fName = " "; String lName = " "; String sFName = " "; String sLName = " "; int dAmount,dTimes,i; Scanner in = new Scanner(System.in); … | |
Hi! I'm trying to zoom in/out ImageIcon in JLabel. The problem is that after 2-3 zooming actions, the image quality becomes horrible. How could I solve this problem? Thanks! [CODE] private void doZoom(int scaleFactor) { Component[] c = SelectablePanel.getMainPanel().getComponents(); for(int i = 0; i < c.length; i++) { if(c[i] instanceof … | |
Hello friends, You have been of great help to me till now. I got a new problem , I am unable to run the JAR file. When i click on the Jar file, I got the following error : "Could not find the main class: socketprog.Main. Program will exit." Thanks … | |
Hi there everyone, I need some help getting started creating a Java program for a class I am taking. Here is what I need to do: Create A program written in Java (without a graphical user interface) that will calculate and display the monthly payment amount to fully amortize a … | |
Hello everyone. I am getting a [CODE]java.lang.NoClassDefFoundError: gnu/regexp/REException'[/CODE] when I run my code. Is there any way around this? I understand it has something to do with a class not being in the write path. I'm using BlueJ as my IDE and I'm trying to use the methods in someone's … | |
Hello everybody .. This is the first time i post on to daniweb for a favour. Am just proceeding with a math contest. in general say n , need the catalan series with formula 2n!/(n!*(n+1)!) . i am in need of the answer for n=1000. I thought cud try this … | |
Hi all, I'm having a bit of a problem with my code. I've created an arraylist method and when values are inputted it prints them one by one. [CODE] import java.util.*; public class ArrayListDemo{ public static void test(int i){ List arrlist = new ArrayList(); arrlist.add(i); System.out.print(arrlist); } public static void … | |
I have form and that have a label I would when I run the program my counter count in label but when i run that's nothing open the form and nothing and that's my cod where error [CODE] private static int totalNum = 0; private void formWindowActivated(java.awt.event.WindowEvent evt) { class … | |
JavaFX and JSF Have any common/similarity? JSF May used together with Struts? | |
I am new to swing. Now I am developing a frame with multiple tabs. For this I used jTabbedpane. Now the problem is that I am not able to save contents of seleted jTextPane of jTabbedPane. While saving, I am only able to save contents finally wriiten on jTextPane. So … | |
hi guys, Im doing a project that executes a java file through another java file.. I need to use Runtime.exec() funtion for the purpose. But, there is trouble in passing the input to the java file. Please help me solve the situation. my main funtion is shown below... [CODE] import … | |
Re: Not able to resolve import.com.lowagie | |
I need to complete this project by next Monday. How do I do a menu selection EXAMPLE: Press 1 to enter the model number. Press 2 to delete a record. Press 3 to exit the program. I'm doing this project on NetBean using Java. Can someone please teach me? Thanks!!!! | |
Stuck on trying to limit a persons name to say 20 characters in a string or a phone number to 6 characters in a string, i cant get the {} inside or after regex to work with either a minimium or maximium number so that in my loop if a … | |
hi guys, thanks for viewing my thread. i have a program in java application and i want to connect to mysql database because i need to use database for a few parameter.the result will b showed in web-page using php. my question is how can i connect my program to … | |
hi, i want to convert a color image into a greyscale image. after loading the color image, i have to count pixel by pixel to get the frequency of the color (0-255) to be placed in an array. can anyone help me how to count the frequency? thx in advance. | |
Hello, this is a newbie question, sorry for that, I am trying to port some Java code to C++. In this code I have a hashmap connecting string values to float arrays of varying sizes. They are specified like this: [CODE=Java] HashMap <String, float[]> hm = new HashMap <String, float[]> … | |
Hi. I'm developing a software for my degree project. I have some problems in sorting the probability item from linkedList object. Here are the snippets of my code (I have almost 400 lines, so if the below is not enough, please let me know) CLASS LINKEDLIST [CODE] class LinkedList implements … | |
I can't figure out what am I doing wrong!! please help me before I lose it! I'm trying to send 2 different strings to a function that will put each word in the string into a MAP. string 1:[B] "I CAR Collision Repair Training"[/B] string 2: [B]"Autocar India"[/B] my map … | |
Hi can somebody help at the earliest . My requirement is to download a file from the remote server and read it in order to insert into db. So, i have written a shell script that downloads the file. This has to be invoked by a java program, after downloading … | |
How do you write the code using Scanner class to set up a menu (i.e 1 for something, 2 for something, and so on.) Then have the user to choose. Thanks | |
HEllO EVERY ONE I need you help in my java code that I built on netbeans First I will example the idea of the programm GUI are containing two textfeild The first textfeild the user have to enter price The second textfeild the user have to enter weight then when … | |
I have device and have the driver of it ,the device send data to me by serial port how i can receive that data in java . | |
hey there, I have the following code: [CODE] import java.io.*; public class Karakters{ public static void main(String[] args) throws IOException{ FileWriter in = new FileWriter("karakters.txt"); PrintWriter outfile = new PrintWriter(in); char x = 'A'; for(int i = 0; i < 300; i++){ System.out.println((i + 1) + " " + (char)(x … | |
Hi, I have setup a syslog server that collects logs from various network devices. Is it possible to develop a system that can retrieve the logs in the syslog server into the system using Java?? I desperately need help here. Does anyone know how to code this or any suggestion … |
The End.