32,199 Topics
| |
Hi , I am a beginner in java and programming. Please help me out to set two attributes for a string field. Here segFolderName is a string field. I need to set two attributed name and description to segName and segDesc respectively. segFolderName.name = segName; segFolderName.description = segDesc; Thanks in … | |
hi, i alreday posted under [URL="http://forums.sun.com/thread.jspa?threadID=5355743&tstart=30"]http://forums.sun.com/thread.jspa?threadID=5355743&tstart=30[/URL] yesterday, but no one helped me. it's an assignment for university, i have only few hours left to complete it, any hints would really be great!! here my post: I have to write a frame with two componenents of squared size (i chose 450 … | |
Attached your will find my completed files, I only have one question about the parent class which is called GoeSolids it has to be a generic geometric solid and i dont think I did that quite right. will someone be able to help me fix it? import java.util.Scanner; import java.text.DecimalFormat; … | |
Hi guys, I am a beginner to Java (I'm only a freshman in high school) and I'm working on a project which involves the need for me to be able to store 11 different strings as a text file. I have it storing the strings with multiple lines so I … | |
Hai Friends, Iam using gprs connection for my project, i want to send message from pc server to my mobile client by UDP connection, how can i do? how can i get ip for mobile gprs connection? please help me for this problem | |
I am creating a jar file which when run displays an image the image path is hardcoded ie the whole path is written. So whenever the jar file is run on a different computer to my own the image is not shown. So my question is how is it possible … | |
i want to write a code for big endian and little endian represntation of message.The msg is trading message.How can i do it with core java? also how can i check data type validity of input given by user and data type is also provided by user. Both Data type … | |
interface BinarySearchTree { public void insert(Integer data); public int size(); public int height(); public boolean contains(Integer target); } and I have to implement BST with all these functions. I have implemented the first insert and size like this way - class Node { Node left, right, next; Integer data; Node … | |
I dont know how to solve this..Can anyone help me.. The project is an Intranet aplication... how can a client upload a file/image.... Uploaded file/image should be to the server... Thanks | |
haii I have a requirement in which i want to read a file from another machine in the network. I want to know how to set the URL Thanks in advance | |
hai there!am a beginner in java.am familiar with c,c++ and object oriented programming principles.someone please suggest me a book or a student friendly site(online materials preffered) that i can refer to ,and improve my java skills.as a beginner i would also like to know the basic differences b/n c++ that … | |
I am going to be taking some Java classes in this upcoming semester at college. Since this is going to be my first Java language class I'm not sure what is really needed to create Java programs on my laptop. The professor has given us the link to the class … | |
please can someone help me with this HW the instructions are : # The computer should ask the player for the largest possible value which could be generated (N) # The maximum number of guesses should be set equal to 1/2 N. (Don't prompt the user). # When the game … | |
hai, i integrate my php pages with java pages in website. i want to get data from that java pages..but not using url's...how to get data from java pages without using url's.. | |
hi guys, iam workin on an application that calculate the income for certain diving centers, i using the SQLite database, i developed a database with 3 table the first one for user input, the second is to hold daily income, and the third for weekly income. i've a problem when … | |
Hi, I wrote two functions, FWT2_PO and IWT2_PO, both having a 'transform' method. The functions work really well, but a strange thing happens. Namely, the following code gives different output than the code below. [code=java] denoised = FWT2_PO.transform(array, 4, QMF, 2); //recovered=IWT2_PO.transform(denoised, 4, QMF); for (int i=0;i<denoised.length;i++){ for (int j=0;j<denoised.length;j++){ … | |
Hi! I wanted to know in simple language what is an API (application program interface). I have made an address book program so can I call it an API. Help will be highly appreciated. | |
It is my final assinment to create a program similar to yahtzee. I need it to roll 6 dice visually. Allow the user to keep the dice they want to save. And after three rolls select a place to save their number value. At end of program, it should tally … | |
hi every body,i have a question- i programing UDP server to download file,it 's work but it can serve only one client one time, how could i create a udp server that can serve a lot clients at the same time. thank you very much. | |
Write a program that implements the BinarySearchTree interface given below . The type of data stored in this tree is Integer. You are free to use any type of implementation; [CODE] public interface BinarySearchTree { public void insert(Integer data); public int size(); public int height(); public boolean contains(Integer target); } … | |
Ok, i'm trying to make two player, no-network pong. i don't know what the problem is, there are some very strange things happening... at the beginning of the program i try to set a y value to half the height, but it doesn't it stays at y=0 when the user … | |
hi people, I want to convert the pixel to a set of rgb values, but I don't really have an idea. If i am not wrong, there are some java commands like readImage and readPixel and raster that are related to digital image. Can someone shed a light on me? … | |
Can someone please reply before Tuesday..........I know it is late but cos I had login problems and it only just sorted now. I am having problems with add traveller into Resort class. I can add traveller fine, but I don't know how to add traveller on home world. I am … | |
Hi everyone. I'm new to this forum, recommended by a friend. I've just finished my first term at uni, and learnt some java. I'm creating a simple helicopter game in java, and have some issues using timers. The funny thing was, i started the project on my laptop, and it … | |
I'm trying to rotate a shape around a point, but I'm having a problem. To give this some context - it's for a game. The transform is applied and the image is drawn, then green rectangle is drawn, then the transform is reset. When I try to use newTrans.createTransformedShape() to … | |
Well to start off...here is my code. import java.io.*; import java.util.*; // my name public class project12 { static Scanner console = new Scanner(System.in); Scanner inFile = new Scanner(new FileReader("f:\\JAVA\\projects\\receipts.txt")); public static void main(String[] args) { int movies; double price; price=2.00; double change, cash, tax, total; System.out.println("Enter how many movies … | |
I'm trying to load a bitmap into an Image object using the following code: [CODE=Java] System.out.println("Point A"); System.out.println("Point B"); m_image = Toolkit.getDefaultToolkit().getImage(getClass().getResource(filename)); System.out.println("Point C"); MediaTracker mt = new MediaTracker(null); System.out.println("Point D"); mt.addImage(m_image, 0); System.out.println("Point E"); try { System.out.println("Point F"); mt.waitForID(0); System.out.println("Point G"); } catch (InterruptedException ie) { System.err.println(ie); System.exit(1); } … | |
Hi, I am kinda new to java netbeans...i have downloaded some java code which is n implementation of the algorithms in the book AI:A Modern Approach. After extraction, the folder has bin, build, doc and src folders which hold various .class and .java files. Now my problem is that i … | |
I've been given a project in which I have to find the highest and lowest possible product using 3 2-digit numbers without repeating any numbers. For example, the algorithm for the highest would be: 7n * 8n * 9n where the n's would be 4, 5, or 6. The algorithm … | |
Hello, first time poster here. So if I come off as asking something so hastily and quickly my bad, but currently I'm creating a clock class on DrJava. This is what I have so far. [code] clock.java import java.util.*; import java.text.*; public class Clock {private int hours; private int minutes; … |
The End.