35,618 Topics

Member Avatar for
Member Avatar for willjohanz

1.JDBC is an acronym of JavaDatabase Connectivity true/false 2.which of the following are advantages of JDBC -continued usage of esting data -vendor dependent 3.The ______ method of the string tokenizer class returns true if theres at least one token in the string aftre the current position -lastidexof -tostring -substring 4.Adavantages …

Member Avatar for JamesCherrill
-1
175
Member Avatar for hg_fs2002

I am writing a program that needs to know the type of constants. I am wondering if there is any way of getting this in java? Like for constant "2" type is int and for "2.0" type is double.

Member Avatar for JamesCherrill
0
183
Member Avatar for sirlink99

I am attempting to encrypt and string and then decrypt it. I have the encryption part working, but when I try to decrypt it gives me an InvalidKeyException and says that it is missing parameters. Here is the code import javax.crypto.*; import java.security.*; public class Cryption { private Cipher c; …

Member Avatar for sirlink99
0
1K
Member Avatar for Jasonfran

Hello, I am making a Java IRC bot and it all works fine. I connect via a socket and there is a while loop that will output whatever comes through the IRC. But, I also want to accept console input while the program is running. So far I can only …

Member Avatar for stultuske
0
199
Member Avatar for boiishuvo

the data file contains: 1908,Souths,Easts,Souths,Cumberland,Y,14,12,4000 1909,Souths,Balmain,Souths,Wests,N 1910,Newtown,Souths,Newtown,Wests,Y,4,4,14000 1911,Easts,Glebe,Glebe,Balmain,Y,11,8,20000 Each line represents a season of premiership and has the following format: year, premiers, runners up, minor premiers, wooden spooners, Grand Final held, winning score, losing score, crowd What I need is to display a list of Grand Final held as 'Y'. …

Member Avatar for stultuske
0
381
Member Avatar for poopuh

How to I create an exe file? I've downloaded JSmooth, but it say I need binary files and I am a little bit confused. My project is in Netbeans.

Member Avatar for stultuske
0
93
Member Avatar for bhallarahul

hi I want to create an application which contain servlet and jsp and also connected with database but i only want that login page will be open from 05:00hr to 10:00 hr before and after nobody able to access/login the page if they do that it reject the request how …

Member Avatar for stultuske
0
100
Member Avatar for sushants
Member Avatar for ShivaRJ

In interview i faced the problem with this program finally i lost that oportunity,i am trying for that code to solve almost for a month ,i can't get get that one, plz help me i can't solve the program upto now. the program was........... he gave me a big String …

Member Avatar for stultuske
0
343
Member Avatar for chandub

hi am creating .xls file by using POI library. This code will create xls file, but it's not giving space between border of cell and its content.how can i set space to content type property. Thanks HSSFWorkbook wb = new HSSFWorkbook(); HSSFSheet sheet = wb.createSheet(styleSheetName); HSSFRow row; HSSFCell cell; HSSFCellStyle …

0
202
Member Avatar for Manuelphp

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Webpage</title> <link href="page.css" rel="stylesheet" type="text/css" media="screen" /> <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script> <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <link href="test.css" rel="stylesheet" type="text/css"/> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> <script type="text/javascript" src="date_ime.js"></script> <link rel="stylesheet" media="screen, print, handheld" type="text/css" href="calendar.css" /> …

Member Avatar for LastMitch
0
194
Member Avatar for axitya

Yes, I know what I'm talking about. which is Creating my own compiler to compile a language say C++,Java,Ruby, Python ..(Any one of them ofcourse -.- ) Actually, if I can just get the source code for an existing one that would be much better. [example] Say there's Turbo C …

Member Avatar for felceyboy
0
358
Member Avatar for godzab

I am trying make a linkedlist remove() method. It only works half way. When I try to remove a number, it removes the whole right side. For example here is the output: ` before remove: 8,7,3,5,2, after remove: 8,7,` How do I get it so only the three is removed? …

Member Avatar for godzab
0
235
Member Avatar for poopuh

Hey guys, I recently completed a program for my boss which simulates a brute force hacker in that it hacks a password by trying every possible combination of ascii characters until it finally discovers the password. I'm new to Java and I drew up a logical, straight forward way of …

Member Avatar for Vesmir
0
755
Member Avatar for javanoob101

Hello everyone, I am using a timer to control the speed of the monsters in my game, however I can't change the delay of the timer because i'm using Timer animation = new Timer (speed, this); to make a timer... How can I change the speed (speed is an int …

Member Avatar for javanoob101
0
282
Member Avatar for Start4me

Hello. I'm quite new to Java, but I've worked on Graphics before. I have a couple of questions which are: I want to make a night sky in Java with stars which randomly switch to big stars from small and back, repeating for a set time. I also want the …

Member Avatar for JamesCherrill
0
377
Member Avatar for FaisalSarfraz

Hi all I am new to java programming. I need a litte helop. I want to take some results from database so i am trying to connect to database. I have dowloaded jdbcmysql connector but having no idea how to add it in eclipse or jre. Plus i am having …

Member Avatar for jwenting
0
351
Member Avatar for mayoubprince

how can i change my java aaplication into a servlet?? in fact i made a game and i want to make it a srvlet so that i can access it through web..

Member Avatar for jwenting
0
133
Member Avatar for dragonofspam

I need some help figuring out where I have gone wrong on my program. It is a classic classroom program, where the program creates a random number and gives high, low response untill the user enters the correct number. I have the GUI working and I know the action to …

Member Avatar for stultuske
0
326
Member Avatar for Venkat SM

Can anyone tell me about [COLOR="Red"]how to create my own format[/COLOR] like .azw(kindle device format),.mobi,.epub etc..Is it possible to create it using java? if yes then what are the steps to do that? I am doing project for e-publishing company they need one own proprietary format like the above formats …

Member Avatar for peter_budo
0
2K
Member Avatar for manaila

I have a Java web application, which executes cmd command to load remote desktop window. Now I want everyone to load the remote resktop window from their pc through that web app. The problem is remote desktop window is loaded in the server NOT from the PC of the person …

Member Avatar for jwenting
0
211
Member Avatar for sriramtashua

Hi there Daniweb! I have an assignment, but i am unfortunately stuck with one particular part of my assignment. Namely, as the title says, i need to sort an array of objects. Basically I have a HairSalon class with properties, Name, Time, and Price I then have a SortSalon Class …

Member Avatar for stultuske
0
198
Member Avatar for game06

trying to write 2d snake game in java just for fun. i have tile map as 2d array. the problem is that its is not drawing player in level 2d loop. let me know if there is better way to do this. only thing i have to use 2d array …

Member Avatar for sirlink99
0
1K
Member Avatar for mintcrops

I'm using netbeans IDE and I created a Jframe with two Jpanels one is for Jbuttons and other one is for load another Jpanels to it when clicks those buttons. I tried to do it from buttonclick action. Jpanel2 j2=new Jpanel2(); JPanel1.add(j2); j2.setVisible(True); but this code is not working. I …

Member Avatar for mKorbel
0
344
Member Avatar for harsha_123

01. I'm working on a school java project using Netbeans IDE. 02. I need to display IReport in a JPanel Placed inside a JFrame with a button Click. 03. To Create the IReport I used ReportView Class downloaded from the Internet & in the button click Event I have following …

Member Avatar for mintcrops
0
330
Member Avatar for Nomas11

Would someone please helpe me out and tell me where i'm missing up with this code.? I want the result(output) in order to be table of row and column. but i was trying and trying but i couldn't. import java.util.Scanner; public class MultiTable { public static void main(String[] args) { …

Member Avatar for JamesCherrill
0
138
Member Avatar for CloudZELL91

hi there... first of all i dont know where to post this,but still its a java thing so i post it here.. ...i need help on this,,dnt know how to fix,, when i play video or a video chat,,it failed to load and have a java application error, down is …

Member Avatar for ccbutler
0
338
Member Avatar for poopuh

I have this line of code if (passLength >= 1) { for (i = 0; i <= 62; i++) { if (ascii[i] == inPass[0]) { outPass[0] = inPass[0]; i=100; } } } else { return "Please enter a Password"; } I basically want the program to check through an array …

Member Avatar for JamesCherrill
0
193
Member Avatar for kgizo

Hi I've already read data in another file which is an array, which is now in a string format, what I want to do is change the array into an integer so that I can add the elements of that array. Code given below import java.io.BufferedReader; import java.io.DataInputStream; import java.io.FileInputStream; …

Member Avatar for JamesCherrill
0
183
Member Avatar for sk8ergirl

hi, I'm trying to write simple culaction programe using stack .. the GUI is simple one textField and one textBox for the outbut and one button this is what I wrote in the button I tried the first operation "-" and it work but I got stuck doing the other …

Member Avatar for JeffGrigg
0
216

The End.