35,618 Topics
![]() | |
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 … | |
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. | |
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; … | |
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 … | |
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'. … | |
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. | |
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 … | |
| |
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 … | |
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 … | |
<!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" /> … ![]() | |
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 … | |
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? … | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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.. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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) { … | |
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 … | |
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 … | |
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; … | |
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 … |
The End.