Search Results

Showing results 1 to 40 of 84
Search took 0.01 seconds.
Search: Posts Made By: akulkarni ; Forum: Java and child forums
Forum: Java Oct 16th, 2009
Replies: 11
Views: 383
Posted By akulkarni
i did not get that..was that a link? just tell me how i can include both swings and jdbc classes in one program..sorry i have lost touch a bit
Forum: Java Oct 16th, 2009
Replies: 11
Views: 383
Posted By akulkarni
Can u please get me clear with how i should configure events like the button clicked and also how do i write two classes ..i mean one for swing and other for jdbc.May be a bad question for my level...
Forum: Java Oct 16th, 2009
Replies: 11
Views: 383
Posted By akulkarni
The question i have is: Create a java application which will add, modify,delete records from employee database.The database has 3 fields emp_id, empname and department location.All information...
Forum: Java Oct 16th, 2009
Replies: 11
Views: 383
Posted By akulkarni
I wish to create an application using swing to update data to the database. I will need three buttons add, modify and delete.
i have so far created JDBC connection with Ms acess. i have also created...
Forum: Java Sep 17th, 2009
Replies: 9
Views: 3,260
Posted By akulkarni
ya i did think of using string ; with for i found it tough.i thought i could get with it with for loops but i failed.
Forum: Java Sep 16th, 2009
Replies: 9
Views: 3,260
Posted By akulkarni
ok. I have solved your "0" problem


class newbie
{
public static void main(String args[])
{
int i,j;
for(i=0;i<6;i++)
{
Forum: Java Sep 13th, 2009
Replies: 3
Views: 1,325
Posted By akulkarni
u r welcome.i have no idea how u got it. But the method i have given can sort any number of numbers. If ur program is doing that..good
Forum: Java Sep 12th, 2009
Replies: 2
Views: 237
Posted By akulkarni
the use is like this


if ((a % num2 ==0)&&(a%num1==0))
Forum: Java Sep 12th, 2009
Replies: 3
Views: 1,325
Posted By akulkarni
use an array and do bubble sort..like this



for(i=0;i<totalnumbers-1;i++)
{
for(j=i+1;j<totalnumbers;j++)
{
if(array[i]>array[j]
{
Forum: Java Sep 12th, 2009
Replies: 7
Solved: Total Cubes
Views: 242
Posted By akulkarni
have u got the correct output.. if yes..good
Forum: Java Sep 12th, 2009
Replies: 7
Solved: Total Cubes
Views: 242
Posted By akulkarni
u have to write a function to convert 3.99999 into 4 .Thats ur job now
Forum: Java Sep 12th, 2009
Replies: 7
Solved: Total Cubes
Views: 242
Posted By akulkarni
i read in wikipedia and found 4 cube 64 is not a cube the list is 8,27,125 ...many others are giving a decimal values
this is how i counted the standard cubes upto 126


class cubes
{
public...
Forum: Java Sep 12th, 2009
Replies: 7
Solved: Total Cubes
Views: 242
Posted By akulkarni
Check out this Math.pow(8,1.0/3.0) does not give value 2.
use like this Math.pow(8,1.0/3).

sorry it gives i am working on it.....
Forum: Java Sep 4th, 2009
Replies: 23
Views: 689
Posted By akulkarni
I got that.I'll try and let u know
Forum: Java Sep 4th, 2009
Replies: 19
Views: 459
Posted By akulkarni
is this it?(sorry if not)


class searche2
{
public static void main(String args[])
{
int result=0;
String []mylist= {"tangerine","apple","blueberry","mango","jicama"};
...
Forum: Java Sep 3rd, 2009
Replies: 19
Views: 459
Posted By akulkarni
or is this what u want


class searche1
{
public static void main(String args[])
{
int result=0;int i,j;
String [] str={"tangerline","apple","mango","lime","carrot"};
...
Forum: Java Sep 3rd, 2009
Replies: 23
Views: 689
Posted By akulkarni
ok.thanks.

I am planing to use the getrandom method to generate random numbers upto 20 and put a switch case statement with different strings for each number. i also need to add 3 levels to the...
Forum: Java Sep 3rd, 2009
Replies: 19
Views: 459
Posted By akulkarni
i am not clear with what u want. You have taken a list of strings ...what do u want to do with them ..please be specific..match the words (with matching position of e?) is that what u want?
Forum: Java Sep 3rd, 2009
Replies: 7
Views: 403
Posted By akulkarni
import java.util.Scanner;
public class listProduct {
public static void main (String[] args){

int productChoice;{
Scanner scanAnything = new Scanner(System.in);
System.out.print("Processed...
Forum: Java Sep 3rd, 2009
Replies: 23
Views: 689
Posted By akulkarni
yes i was actually noticing it.It was a typo i guess.

is this ok now

import java.io.*;
class bullstest2
{
public static void main(String args[])throws

IOException
Forum: Java Sep 3rd, 2009
Replies: 19
Views: 459
Posted By akulkarni
check this out



class searche
{
public static void main(String args[])
{
String s1="tangerine";
int d=s1.length();
Forum: Java Sep 3rd, 2009
Replies: 7
Views: 403
Posted By akulkarni
Here is how i can explain loop within a loop(nested loop)


for(int i=0;i<4;i++)
{
for(int j=0;j<4;j++)
{
......
}
}
Forum: Java Sep 3rd, 2009
Replies: 23
Views: 689
Posted By akulkarni
Dear Vernon,

I hope u will kindly accept my thanks with a reply. I did the program just as u told. It was great. I wonder how u could think of such good string manipulation.Anyways, hope to be in...
Forum: Java Sep 2nd, 2009
Replies: 2
Views: 224
Posted By akulkarni
i think u will need a Jframe for the dialog box , a button and an action listener. U have ignored event handling functions


frame = new JFrame("Show Message Dialog");
JButton button = new...
Forum: Java Sep 2nd, 2009
Replies: 23
Views: 689
Posted By akulkarni
Yes i think i can do that. Thats quite smart.I will post the program as soon as possible.

thanks
Forum: Java Sep 2nd, 2009
Replies: 23
Views: 689
Posted By akulkarni
for now i have given the user a condition that he shouldnt repeat letters in his guess.I checked in wikipedia about the game and i saw that the condition is ok

I did on paper but it looks tough.Do...
Forum: Java Sep 2nd, 2009
Replies: 23
Views: 689
Posted By akulkarni
Dear vernon,

I might get flamed for this but no worries. I did put down an algo what i discovered was ....in the first loop if i put another "if"
if(str2.charAt(i)==str2.charAt(i+1))...put a...
Forum: Java Aug 28th, 2009
Replies: 23
Views: 689
Posted By akulkarni
ok i will try and let u know
Forum: Java Aug 28th, 2009
Replies: 23
Views: 689
Posted By akulkarni
i did some changes.I made j=0 and compared count2 with count1 hope this works for all combinations. I have tried a few but failed with ffff mmmm aaaa eeee it gives 4 cows which should be 0
heres the...
Forum: Java Aug 28th, 2009
Replies: 23
Views: 689
Posted By akulkarni
Dear sirs please be in touch i need to give more thoughts to it
Forum: Java Aug 28th, 2009
Replies: 23
Views: 689
Posted By akulkarni
I am trying to design the game Bulls and Cows
we have a word to guess eg:"fame"(four lettered)
if i type abcd bulls=0 cows=0
efgh bulls=0 cows=1 (if the letter is at the same positon as the word...
Forum: Java Aug 19th, 2009
Replies: 1
Views: 314
Posted By akulkarni
i tried the following code but not getting the desired output. I need to extend Applet class along with dialog class.how do i do that?

import java.awt.*;
import java.awt.event.*;
import...
Forum: Java Aug 16th, 2009
Replies: 6
Views: 253
Posted By akulkarni
i did not understand how to download from the link you gave..quite tedious
Forum: Java Aug 16th, 2009
Replies: 1
Views: 186
Posted By akulkarni
i have a code with me

import java.applet.*;
import java.awt.*;
/*<applet code="DialogTester" width=400 height=400></applet>*/
public class DialogTester extends Applet
{
public void init()
{...
Forum: Java Aug 16th, 2009
Replies: 6
Views: 253
Posted By akulkarni
i am told apache tomcat server will solve the purpose.i want to know if i can get it from the internet
Forum: Java Aug 16th, 2009
Replies: 6
Views: 253
Posted By akulkarni
i have subject advanced java programming in my syllabus
i will be learning socket programming servelets, corba,AMI,java beans etc. I have heard about apachetomcat server.How do i get the required...
Forum: Java Jul 24th, 2009
Replies: 4
Views: 427
Posted By akulkarni
Forum: Java Jul 24th, 2009
Replies: 4
Views: 427
Posted By akulkarni
ok thanks for that. I want to create more than one columns of different data types while creating the table.How do i manipulate that?(In the code where i write the sql statement for creating the...
Forum: Java Jul 24th, 2009
Replies: 4
Views: 427
Posted By akulkarni
i wish to add another column using code in JDBC.I have one column columnname i wish to add a text type(data type in access) column in the access file
my code is

import java.sql.*;
public...
Forum: Java Jul 15th, 2009
Replies: 19
Views: 491
Posted By akulkarni
thanks a lot how can i thank you it worked
i need to practise a lot
u are too good

thanks again
Showing results 1 to 40 of 84

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC