32,199 Topics

Member Avatar for
Member Avatar for av11453

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 …

Member Avatar for neilcoffey
0
58
Member Avatar for jrobw

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 …

Member Avatar for neilcoffey
0
190
Member Avatar for dnmoore

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; …

Member Avatar for dnmoore
0
116
Member Avatar for amgupt01

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 …

Member Avatar for gprest
0
173
Member Avatar for Venks

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

Member Avatar for AlbertPi
0
104
Member Avatar for dominic23jones

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 …

Member Avatar for PoovenM
0
156
Member Avatar for srs_grp

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 …

Member Avatar for AlbertPi
0
228
Member Avatar for soniagupta98

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 …

Member Avatar for PhiberOptik
-2
100
Member Avatar for ajithraj

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

Member Avatar for peter_budo
0
360
Member Avatar for ajithraj

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

Member Avatar for masijade
0
300
Member Avatar for abcd_nima

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 …

Member Avatar for peter_budo
0
94
Member Avatar for Beef_Log_FTL

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 …

Member Avatar for ~s.o.s~
0
115
Member Avatar for dimplomat15

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 …

Member Avatar for dimplomat15
0
141
Member Avatar for php2sheik

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..

Member Avatar for buddylee17
0
64
Member Avatar for MxDev

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 …

0
93
Member Avatar for theraven82

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++){ …

Member Avatar for stephen84s
0
127
Member Avatar for shubhang

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.

Member Avatar for verruckt24
0
144
Member Avatar for Kentoro

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 …

Member Avatar for verruckt24
0
142
Member Avatar for bachma7

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.

Member Avatar for neilcoffey
0
223
Member Avatar for soniagupta98

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); } …

Member Avatar for masijade
0
92
Member Avatar for sciwizeh

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 …

Member Avatar for sciwizeh
0
135
Member Avatar for tristan17

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? …

Member Avatar for sciwizeh
0
702
Member Avatar for Speedy Hawk

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 …

Member Avatar for Ezzaral
0
149
Member Avatar for relequestual

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 …

Member Avatar for Ezzaral
0
1K
Member Avatar for echilon

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 …

Member Avatar for AlbertPi
0
163
Member Avatar for oobokensilence

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 …

Member Avatar for stephen84s
0
131
Member Avatar for CoolGamer48

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); } …

Member Avatar for Ezzaral
0
176
Member Avatar for suvirj

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 …

Member Avatar for peter_budo
0
125
Member Avatar for IMtheBESTatJAVA

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 …

Member Avatar for verruckt24
0
296
Member Avatar for jinuyasha

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; …

Member Avatar for VernonDozier
0
822

The End.