36,051 Topics

Member Avatar for
Member Avatar for shirish_kal

Hi , I am a new to java and am stuck with coupe of lines i wonder if any of you ppl could help me i wud be gr8full... URL localURL = new URL("http://www.xyz.com"); URLConnection localURLConnection = localURL.openConnection(); String str2 = localURLConnection.getHeaderField("string1"); What wud these lines actually do or to …

Member Avatar for shirish_kal
0
100
Member Avatar for JoeK

[B]This assignment requires that I allow for user input in a GUI for principal, interest rate, and term in years. I also have to provide a pulldown with 3 preset rates that will also load a cooresponding term length. All of that plus an amoritization table as well. I have …

Member Avatar for JoeK
0
457
Member Avatar for jacline

I have a final exam on tuesday and i cant solve this problem. can you help me please? [url]http://www.cs.bilkent.edu.tr/~david/cs101/assignments/lab09/05cs101lab9extras.htm[/url]

Member Avatar for Salem
0
91
Member Avatar for gauravmishra

I am trying to take continuous pictures of small window of my screen and create a continuos motion picture sort of thing and display it on the java panel . For this i am taking snapshots of the screen window by using "Robot" class . but the panel is only …

Member Avatar for puneetkay
0
165
Member Avatar for l_03

hello...i am confused,,it is possible that a linkedstack will be full??i only implement a method that isEmpty(),,and it reads the method if the stack is empty..but if the stack is full, it do not even read the method i made....would someone help me?/,,,thank you ahead...

Member Avatar for ~s.o.s~
0
128
Member Avatar for rapture

ok, I'm taking my first Java class and in my first week. I've searched but this is different from .Net so much that I have a headache just getting eclipse set up and how to navigate the environment. That said, I have a program that would take me 5 minutes …

Member Avatar for rapture
0
104
Member Avatar for mercury113
Member Avatar for masijade
0
265
Member Avatar for kinjal1717u
Member Avatar for verruckt24
0
332
Member Avatar for firebike0

help would be appriacted - i usually do that on a ENITRLY different file but i have no clue how to describe the INT's for a different file - note if you didnt read its supposed to be for teleportPet_process() which if you want to look at that code its …

Member Avatar for firebike0
0
270
Member Avatar for srs_grp

We have 3 classes.In first class,we have a content pane and we have created object of second class on it.In second class,we have added a few textfields.We want that all these textfields of second class should be visible in third class.Third class also has its own GUI components(textfields). But the …

Member Avatar for puneetkay
0
133
Member Avatar for mercury113

i have this code in java... my first combobox when u choose letter a will be correct... but how will apply in the other combobox that when u choose it... the letter b will be the correct answer?? plzz help me... import javax.swing.*; import java.awt.*; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; public …

Member Avatar for puneetkay
-1
79
Member Avatar for rude04

how do you make a jframe transparent?...i need to add a png or gif image in the frame..so when i run the program it will only show the image..and the image would float in the desktop.. i also need to add a few components like JButton.. i want the frame …

Member Avatar for rude04
0
210
Member Avatar for abhi_elementx

Hi folks, I want to access Oracle 9i table "emp" in Java... I do not know what driver to use .. The name of the Oracle database under which "emp" falls is "Oracledb" I do not know what the connection string is? Pls help...

Member Avatar for gambling
0
175
Member Avatar for JamieC90

Can someone explain to me what this is? I have been asked to code a tic-tac-toe board using an array which I have done, but the brief specifies using standard input, and I have no idea what that is, but I'm guessing does not include changing the values of the …

Member Avatar for javaAddict
0
218
Member Avatar for mercury113

i have this code in java swing... im getting an headaChe thinking what to do... how do i add events in my ComboBox?? wHat i want is that when i sElect a comBoBox iT will tell wether the one you selected is correct or wrong... then the comBoBox will be …

Member Avatar for mercury113
0
177
Member Avatar for ezkonekgal

can anyone clarify to me what this means? it's kind of comfusing..:) [B]linked stack embedded in a sequencial vector[/B]

Member Avatar for masijade
0
210
Member Avatar for hypocrisy

hii every body how are you? in fact, i am a beginner in java programming and i do my best to improve myself in this language so i tried to solve many exercises to confirm that i have no difficulty with this language. I solved this question but i had …

Member Avatar for masijade
0
193
Member Avatar for hany-h

Hi everybody, I have a Jtable and i am going to add an empty row after pressing a button named insert. Whenever i put these following code in my class ,it works properly. I should add after these 2 lines i create a JScrollPane and add it to the getContentPane(). …

Member Avatar for puneetkay
0
334
Member Avatar for ankur_maniya

hello. readers.... i am computer student last year... i want help from you...that i need some projecy defination which is ni java...please help ...

Member Avatar for verruckt24
0
86
Member Avatar for abhishek.reddy

Guys I am positively freaking out in excitement. Guess what Sun Microsystems is bringing its top innovators to India on February 18-20, 2009 at HICC Hyderabad at a worldwide developer conference organized by Sun Microsystems, named “Sun Tech Days”. And that includes James Gosling, the father of JAVA.

Member Avatar for verruckt24
-1
89
Member Avatar for comsec

I have a mechanism to upload a file to the remote disk from the JSP page. But now the issue is that User is not supposed to access the remote disk as it is supposed to be a restricted access remote disk. Now I was wondering on how to upload …

Member Avatar for stephen84s
0
90
Member Avatar for Alishaikh

I have attached the file with the sorts. I have to show 2 sorts insertion, and selection sorts demonstration in bars. I should show the position of the bars after each run. How do i go on about doing that?

Member Avatar for javaAddict
0
136
Member Avatar for caps_lock

So i've downloaded netbeans, and had a play around. But I'm thinking is Java the wrong language to design a duplicate file scanner. The program if not obvious should hopefully atleast identify any files that exist on a computer more than once (copies). Im also going to try and make …

Member Avatar for jbennet
0
259
Member Avatar for aznlover

K, well, I'm kind of screwed right now, I am supposed to make a game by using java, and this is all like minor stuff. The code so far, and I have little idea of what I'm doing. I want to make it so that when you click in a …

Member Avatar for puneetkay
0
227
Member Avatar for ianmoticon

Hi. I'm new to Bluetooth programming. I really just want to get my phone talking to my PC via bluetooth, using some form of Java. Does anyone have a very simple "hello world" style sample that I could use? Many thanks in advance, Ian

Member Avatar for peter_budo
0
90
Member Avatar for mandar2886

I got this error: javac AudioConverter.java .\Converter1.java:55: cannot access jlc bad class file: .\jlc.java file does not contain class jlc Please remove or make sure it appears in the correct subdirectory of the classpa th. jlc j=new jlc(); jlc is one class which I have to call in another class …

Member Avatar for puneetkay
0
64
Member Avatar for srs_grp

Hi!! I want to insert byte array in database schema as follows: table message { msgid number(5), messagevalue BLOB }; I have done this in following way But I am getting NULL pointer exception. //byte[] msgval .. contains byte values like 49 50 53 etc. Blob msg; msg.setBytes(1,msgval); // for …

Member Avatar for ~s.o.s~
0
129
Member Avatar for JamieC90

Hey all, first post, hope I'm not doing anything wrong I'm taking a Java module next term at university, and in preparation, they want us to code two things. They reckon there's a help file up on their intranet but the intranet is very unstable, and doesn't seem to handle …

Member Avatar for JamieC90
0
183
Member Avatar for seeker_89

i'm making a simple program that will accept 7 input using JOptionPane i'm found out that JOptionPane has been used 7 times i want to transform in function i make it but i encounter an error. [code] import javax.swing.JOptionPane; public class SevenWord2A{ public static void main() throws NoSuchMethodError { String …

Member Avatar for stultuske
0
101
Member Avatar for satin

Hi.. can anyone giv me a program to send mail automatically if it satisfies some condition.. such as i want to send mail before three days of the particular date..(say 5/2/09 i want to send mail on 3/2/09).. Thanks in advance..

Member Avatar for peter_budo
0
54
Member Avatar for javaman2

how can i loop a whole code and make it repeat until the user wants to stop.

Member Avatar for javaAddict
0
115
Member Avatar for javaman2

how can i set a boolean to put in an if else statement with the following code if((Math.abs(x)==1)&&(Math.abs(ex)==1)&&(Math.abs(exx)==2))//test for straight System.out.print("Straight"); if((cardSuit==0)&&(cardSuit2==0)&&(cardSuit3==0))//test for flush System.out.print(" Flush "); i want to set a boolean straight and boolean flush to put in another if else statement like so if(straight && flush) System.out.println("Good …

Member Avatar for stephen84s
0
106
Member Avatar for christiangirl

Hey, I am tutoring this kid in java and he has to use TurtleGraphics and BreezySwing, neither of which I have used in a while. I am having trouble figuring out some of his problems. I will post both his code and how I altered his code. I am wondering …

Member Avatar for christiangirl
0
109
Member Avatar for christiangirl

Hey, I need to download the TurtleGraphics package but am having trouble findng a place to dwnload it from, I tried a couple of places but they did not work. Do you know of a good website to get it off of? Thanks!

Member Avatar for ddanbe
0
95
Member Avatar for PhiberOptik

Hey guys, I am trying to get some code to interpret a parameter determined by a JAR file. IE. [ICODE]C:\user\myProgram.jar 500[/ICODE] I want to know how to transfer 500 over to the program. I googled it, and most of the stuff that came up was extremely difficult to understand. Thanks …

Member Avatar for stephen84s
0
138
Member Avatar for efus

I am trying to learn some oop in java. What I am trying to do is building a binary tree to convert an ekspresion in reverse police notation to infix notation. The problem is that I have three classes, one abstract called [b]ArithmeticNode[/b] which represents a general node, a class …

Member Avatar for javaAddict
0
101
Member Avatar for javaman2

hey again i've fixed my code a little and need a little help. I've got the flush and one pair determinations to work but the three of a kind, straight, straight flush and royal straight flush are giving me a little trouble. If anyone has any suggestions, i would really …

Member Avatar for hypocrisy
0
110
Member Avatar for linggs

Hi there, I know I should not be doing this. But I really some readymade java codes on currency converter working on eclipse program. It is a part of my assignment. But my java really cannot make it, so is there any kind soul to help me? Please. Anyway, I …

Member Avatar for stultuske
0
220
Member Avatar for omeralper

We can convert any kind of numbers to binary string. For example 20501487 can be converted into binary String format as 1001110001101001111101111. However I cannot reconvert this binary String into any number format, even long or float numbers due to NumberFormatException, where the numbers are very big to convert. I …

Member Avatar for omeralper
0
202
Member Avatar for Modo

hello how r u doing .. i have been looking on the internet but i cant find much info .. does anyone know where i can find information about making a database in java? (i expect it is has information about arrays, arraylist, iterators and inheritance) ... i want to …

Member Avatar for Ezzaral
0
127
Member Avatar for John G

public class Date { private int _day; private int _month; private int _year; boolean checkDate=true; public Date(int day,int month,int year) { if ((day>31)||(day<1)) { System.out.println("You entered a wrong day"); checkDate=false;} else if ((month>12)||(month<1)) { system.out.println("You entered a wrong month"); checkDate=false;} if (checkDate=true) { _day=day; _month=month; _year=year; } } public Date() …

Member Avatar for Antenka
0
116
Member Avatar for ~gamer4life~

hey again! im wondering if there is a way to make a 2d game in java "FREE" Is there a program to do that? and srry for double posting :-) im just trying to figure out what im making...

Member Avatar for Ezzaral
0
66
Member Avatar for lonely girl

[B]helllllllo friends please can u help me???? i have project about creating currency converter using jGRASP i made the enterface using jframebuilder but i dont know how to complete it...i really need ur help friends :'( [/B]

Member Avatar for Ezzaral
0
3K
Member Avatar for viron

my view about this topic inheritance mean everything from parent class comes down in child class that is instance data,method,final data except thing declared private while in case of interface only final data and signature comes down from parent to child class that is instance data,method, doesnt comes down by …

Member Avatar for verruckt24
0
111
Member Avatar for srs_grp

In following code ,I have initialized column to empty blob. But when I try to retrieve the blob,i get an exception.Can anybody help me out?? _____________________________________________________ [code] import java.sql.*; class test { public static void main(String[] args) { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection conn= DriverManager.getConnection ("jdbc:odbc:dixit","scott","tiger"); PreparedStatement st=conn.prepareStatement("insert into survey values …

Member Avatar for masijade
0
123
Member Avatar for ezkonekgal

before anything else, i have a question. How can you have a multiple stack in one vector using node/linked list? i don't get the concept of linked list yet. Anyways, this is my problem: [B]Create a Java class definition of a multiple-stack in one dimensional vector. Implement the basic operations …

Member Avatar for ezkonekgal
0
310
Member Avatar for srs_grp

I have byte array that contains (49 50 58 57 57). I'm storing this byte array in blob by using setBytes() method of preparedStatement. But in database,it is stored in different manner i.e, 31323A3939. When I try to retrieve value of this blob using getBytes() method, I'm getting output as …

-1
101
Member Avatar for jeffreyjs

Hi, I am currently doing a mini project using Eclipse with Java language.. i needed to submit some values into the DB, but i am having some trouble to do so... i would like to find out if i need to create variables for all the values i want to …

Member Avatar for peter_budo
0
312
Member Avatar for SSJVEGETA

Good morning everyone. I am having trouble connecting my MySQL database to a JTable in Eclipse. I keep on getting an exception and receiving this message "Unable to find and load database driver". Here is a sample of database code for the program: [CODE]class QueryTableModel extends AbstractTableModel { Vector cache; …

Member Avatar for JavaCool4Me
0
178
Member Avatar for bharanidharanit

Java coding to find the open ports in the system and also which ip address and host name is using the ports. Is that possible with the java coding?

0
50

The End.