31,002 Topics

Member Avatar for
Member Avatar for indianscorpion2

hi my name is srikanth.i am a beginner in java just learning the basics.i just have one question. why does everyone talk in a confusion manner regarding java like using terms such as j2ee,j2se,core java advanced java. whats the difference? there is no such confusion in C. and what is …

Member Avatar for catherine1001
0
375
Member Avatar for George2

Hello everyone, When debugging a C or C++ binary file, the file is different from the release version of binary file (debug version binary file is larger). My question is, if we want to debug a Java binary file (.class file), is the version of file (which we use to …

Member Avatar for George2
0
210
Member Avatar for freesoft_2000

Hi everyone, I have a rather silly question to ask so please bear with me. What is JDIC?? Is it part of J2SE?? If not will it be part of J2SE in the future?? What is the purpose of JDIC and what role it plays in software development?? Any help …

Member Avatar for jwenting
0
138
Member Avatar for freesoft_2000

Hi everyone, I need to ask a very generalised question about classpath. Now i have a java class file named JTim.class Now on the command line i run JTim like that [code] C:\j2sdk1.4.2\bin\java -cp .;C:\WINDOWS\Desktop\JProc\ JTim [/code] Now do you guys see the folder in which JTim is in which …

Member Avatar for Kate Albany
0
229
Member Avatar for vps

hi i am using a variable as double and passing pointer of it as parameter to an api this is all hapening in JNI. after i read the value i am getting an garbage value can anybody tel me y is it hapenning, using an float variable instead of double …

Member Avatar for jwenting
0
246
Member Avatar for piy_123

hello everyone, i want to make a project in java using which, we shall read all kinds os SIM cards and any other cards with Magnetic Strips.but i ma not getting any further info about it i.e how to start it plz help me on that or send me any …

Member Avatar for freesoft_2000
0
87
Member Avatar for MastaPho

currently using JBuilder Foundations task is to display a .gif file in JApplet from my hardrive the URL is C:\MAGIX Should the image file be located elsewhere in a specific place? import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Applet1 extends JApplet { public void init(){ Container contentPane=getContentPane(); ImageIcon icon=new …

Member Avatar for server_crash
0
84
Member Avatar for chiwawa10

greetings, I would like to build a subset from a Hashtable. The subset is a Hashtable too. How could I do it? Is there any API out there? Any advise or guideline are appreciated, thank you! :rolleyes:

Member Avatar for jwenting
0
439
Member Avatar for freesoft_2000

Hi everyone, I have a rather silly question but what is the maximum amount of characters the String object can hold? This is what i mean [code] String str1 = some buffer that contains about 5 million characters as a string [/code] What i am afraid is that if the …

Member Avatar for alpha_foobar
0
107
Member Avatar for Dark Master

hi, i m making a web crawler in java with oracle9i as back end.for this i need to store the web pages crawled by the crawler as compressed pages in the database.similarly the pages need to be uncompressed for viewing at a later time.but i hv no idea how to …

Member Avatar for freesoft_2000
0
109
Member Avatar for dummy00
Member Avatar for princeinc

can anyone pls help me to complete this questions?? i'm new in programming , n i'm not very sure how to even start to do this programs....so help needed urgently..preferably the program can be done in Java or C ++... thank u No1. Develop a program to simulate a computer …

Member Avatar for freesoft_2000
0
114
Member Avatar for switty

Hi! I'm a student and I have a project in Java and its title is Virtual Keyboard....can you please help me on how to create that virtual keyboard pls...and also can you please leave your e-mail add so that i can chat with you....thanks a lot! :lol:

Member Avatar for switty
0
186
Member Avatar for indianscorpion2

hi i am new to the concept of object oriented programming.i would say that i have command over the C language.i am now a beginner in java. i am not able to understand all the stuff like objects,public,classes,encapsulation.................and so on. are there any easy tutorials for beginners like me on …

Member Avatar for proghelper
0
127
Member Avatar for Sailor_Jerry

For example Class A does not have a default constructor. Class B extends A Any reason/benefits to do this? [code] public class B extends A { public B() { super(); } } [/code]

Member Avatar for proghelper
0
185
Member Avatar for bumsfeld

Can I wrote an object to files and later on retrieves it with its integrety intact? Is there a ready made function or do I have to write one? I am new to Java, is this what one calls serialization?

Member Avatar for mmiikkee12
0
102
Member Avatar for splifficus

Just started a Java class and the first HW assingment was issued. I have read the chapter a million times and cant figure out what the heck am I doing wrong. The assingment is supposed change Celcius temperature to Fahrenheit using a worker class. import javax.swing.*; public class ConvertTemperature { …

Member Avatar for splifficus
0
127
Member Avatar for visual one

hi I need a java program that will use parallel array to hold an account number, account holders name, withraw, deposit, intial balance, balance and overdraft fee. It must also print out the account number, account holders name and balance. thanks

Member Avatar for server_crash
0
410
Member Avatar for dummy00

are the codes correct? because im having some errors in getting the output. tnx create a program that will generate the following display: use method declaration without return and with argument list. Input value for the height of triangle. 5 54 543 5432 54321 5432 54 5 import java.io.*; public …

Member Avatar for proghelper
0
105
Member Avatar for Sailor_Jerry

What are the benefits\drawbacks about the design below? Here is a simple example of the possible class design. What are the benefits of doing it this way? vs. just dropping the interface class all together. ================================= Public interface Car { public String getColor(); public void setColor(); } ================================== public class …

Member Avatar for proghelper
0
196
Member Avatar for freesoft_2000

Hi everyone, I am currently trying to serialize parts of a jtextpane using the java ObjectOutputStream to write it to disk and when i am reading the object back i am using the java ObjectInputStream. When i read the api about the streams here is what they say [QUOTE] Warning: …

Member Avatar for jwenting
0
372
Member Avatar for vps

hello everybody I want to overwrite the names which are already existing and to append the new names in a file. can anybody plz help out. if i use the FileWriter(Fname,boolean true), it appends the even the ones which are existing, i want to append the new ones only. regards …

Member Avatar for jwenting
0
167
Member Avatar for ayk-retail

I am taking Java next year but am wondering whether C++ is more difficult than Java?

Member Avatar for Phaelax
0
98
Member Avatar for randallnefdt

Hi All, I've just started using java and created a "HelloDate" program which works 100%. After that I created a "HelloWorld" program which didn't work because I had made a mistake in the code. I then rectified the mistake, deleted the class and then recompiled the "HelloWorld" program and it …

Member Avatar for Daishi
0
277
Member Avatar for sam1

hi im constructing a rectangle in main method, i wrote: [CODE] rectangle t = new rectangle();[/CODE] but i get message on compilation: [CODE] cannot find symbol symbol:constructor retcangle() location:class rectanlge() rectangle t = new rectangle(); ^[/CODE] what is wrong?

Member Avatar for hooknc
0
137
Member Avatar for sam1

hi all im writing a function for rectangle where it takes a rectangle and return a rectangle (same top-left vertex) but reduces the width and height by a,b respectively..... i have done this [CODE]public int shrink(int a, int b) { return (this.width -= a)&&(this.height -= b); } [/CODE] but i …

Member Avatar for alpha_foobar
0
139
Member Avatar for smmuols83

Please help me. I'm trying to download java and I keep getting a message that says "Error 1311 source file not found. C:\Documents and Settings\owner\local settings\content. IE5\kxabstqz\ja150000[1].cab". I have no clue what it means and when I called gateway they told me that the instructions to fix it would be …

Member Avatar for server_crash
0
148
Member Avatar for sam1

hi every one i was just wondering does Code: [CODE]int left = x > rect.x ? x : rect.x;[/CODE] means the same as Code: [CODE] if (int left = x && left < rect.x) { return x; } else return rect.x;[/CODE] or something else? thanx

Member Avatar for jwenting
0
95
Member Avatar for MonkeyCode

Hello, DaniWeb, I'm trying to get better at troubleshooting, so I'd like to see what process other people go through. I have three communication devices that aren't working in my program... a connection to a MySQL database, a keylistener, and a treat feeder. On the other hand, some other communication …

0
54
Member Avatar for JavaFish

Hi I have created an array of random numbers but I need to stop duplicate numbers being added to the array so I have added the boolean 'fresh'. however, I somehow need to tell my 'fresh' to only check the number of elements added to the array so far and …

Member Avatar for hjangel
0
443

The End.