Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
~22.6K People Reached
Favorite Tags
Member Avatar for starlight09

hi I'm trying to sort 3 numbers from lowest to highest that the user enters...ex ...2 , 4, 6. I have a problem with finding(calculating the middle) number. this is what i have [CODE]//create a Scanner Scanner scanner = new Scanner(System.in); //Prompt the user to enter three floating-point numbers System.out.println("Please …

Member Avatar for Taywin
2
9K
Member Avatar for newbieGirl

Ok, I am totally confused - probably because I've been staring at my computer for hours, but I need some guidance (not for homework, just my own personal knowlegde)... Here's the output I'm trying to achieve: 012343210 001234321 000123432 000012343 000001234 ...And I know I need to use a for …

Member Avatar for SoftEngr
0
246
Member Avatar for akulkarni

A silly question I have by mistake deleted the label control in the toolbox..how do i get it back

Member Avatar for sufyan2011
0
93
Member Avatar for akulkarni

Hello, I have created a master page in asp.net. I have three pages default.aspx,default2.aspx,default3.aspx which follow the master page. I have a content holder in the master page which holds a bulleted list with display mode as link button showing image on particular bullet click. But the image is shown …

Member Avatar for abdul bhai
0
183
Member Avatar for akulkarni

Hello, I downloaded a theme from wordpress. I got a zip file containing all php pages. How do i ues them and create a blog of my own i hope i get a good response thanks

Member Avatar for The5sisters
0
90
Member Avatar for akulkarni

Hello, I downloaded a theme from wordpress and uploaded it to my domain server i keep getting this error Fatal error: Call to undefined function get_header() in /home/changeis/public_html/index.php on line 1 please guide

Member Avatar for akulkarni
0
83
Member Avatar for akulkarni

Hello. I am using Easy php i am trying to connect with the following code [code] <?php $con = mysql_connect("localhost","admin",""); if (!$con) { die('Could not connect: ' . mysql_error()); } // some code ?> [/code] getting error as follows Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'admin'@'localhost' (using password: NO) …

Member Avatar for akulkarni
0
207
Member Avatar for JAM1011

Hey all, I am a bit lost. I need something tje user can type in data to such a parts QTY cost etc. There are no predefined parts list so the user can enter any part name/Number and there is no limit to amount of parts that can be entered. …

Member Avatar for akulkarni
0
111
Member Avatar for 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 a textfield where i will enter data like this... [code=JAVA] import java.awt.*; import …

Member Avatar for akulkarni
0
240
Member Avatar for akulkarni

i am trying to learn servlets so i downloaded tomcat server.I learned that i have to do this...set path=c:\tomcat\lib\servlet.jar or click the exe file tomcat6 in the bin folder. I tried to connect with localhost8080 it is not working.I am not getting Tomcat home page. Any help will be great.

Member Avatar for akulkarni
0
132
Member Avatar for akulkarni

i am trying to help a friend on a program on client side scripting using javascript. i have the following code but i am not getting the output desired. [code] <html> <head> <Script language="JavaScript"> var usernameVal; if(document.f1.usernameVal.value.length<3) { alert("username is invalid") return false; } else { alert("acceptable") } </script> </head> …

Member Avatar for Troy III
0
118
Member Avatar for runee1000

Hi: I'm trying to solve a question as it states: "Create a program which determines if a given number a is a common divisor of two other numbers num1 and num2." I am 100% beginner to Java and just started a couple days ago, so most terms discussed feel quite …

Member Avatar for akulkarni
0
138
Member Avatar for Krstevski

Hey people... I have one problem... Find how many total cubes are there in the range from A to B, inclusive. An integer Y is total cube if it can be expressed as: Y = X*X*X, where X is also integer. The first total cubes are: 1, 8, 27, 64 …

Member Avatar for Krstevski
0
98
Member Avatar for ubi_ct83

i have loaded the string data from file to double array.this is example: const_array[1][]=a1,b1,c3, const_array[2][]=a2,b1,c3, const_array[3][]=a3,b2,c2, const_array[4][]=a2,b3,c1, const_array[5][]=a3,b2,c1, those data need to be compared to this string: append_test_data.this is also an array and it will be changed randomly by d program.the prob is,my prog just compare to the last data …

Member Avatar for ubi_ct83
0
561
Member Avatar for Alpdog14

I am writing a small Java program and need help using a simple search code. It is not compiling. [CODE]public int indexOf(EltType e) { int i=0; for (i = currsize; i < currsize; i++){ things[i] = e; e.equalts(get(i)); } return -1; }[/CODE] Basically I want to get the position number …

Member Avatar for javaAddict
0
158
Member Avatar for 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 we give bulls. If the letter is in the word but not …

Member Avatar for akulkarni
0
1K
Member Avatar for Ally89

Hi all I'm needing help with a question in my tutorial due tomorrow... I'm given this file which contains the following: toy201, Racing Car, AB239:2,DC202:2,FR277:2,JK201:1,YU201:1,EE201:1,FW201:1 toy101, Barbie Doll, AB139:2,DC102:2,FR177:2,JK101:1,YU101:1,EE101:1,FW101:1 toy301, Flying Kite, AB339:2,DC302:2,FR377:2,JK301:1,YU301:1,EE301:1,FW301:1 I am now to define a function that gives the following from the above file: >>>load_prods(filename) {'toy301': …

Member Avatar for Ally89
0
129
Member Avatar for coud_ren_26

may someone give me a sample code of loop within a loop, and other that I may use for decision in my program.

Member Avatar for akulkarni
0
161
Member Avatar for dnyce 215

In class I have to create a java program that has to use the user method. Here is my code. 1 import java.text.*; 2 import javax.swing.*; 3 import java.io.*; 4 public class Fahrenheit3 5 { 6 public static void main (String [] args)throws Exception 7 { 8 String inFahrenheit; 9 …

Member Avatar for VernonDozier
0
118
Member Avatar for willingj

I am continuing work on a program for analysis of an entered array, I have got min,max,median and sorting the array working with some input parameters. I cannot seem to get the mode to work, i have attempted some code to do this. Your help would be greatly appriciated, i …

Member Avatar for akulkarni
0
112
Member Avatar for 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? [code=JAVA] import java.awt.*; import java.awt.event.*; import java.applet.*; /*<applet code="YesNoDialog" width=400 height=400></applet>*/ public class YesNoDialog extends Dialog implements ActionListener { private Button yes=new Button("Yes"); private Button …

Member Avatar for quuba
0
130
Member Avatar for 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 software from net.thanks

Member Avatar for BestJewSinceJC
0
135
Member Avatar for akulkarni

i have a code with me [code] import java.applet.*; import java.awt.*; /*<applet code="DialogTester" width=400 height=400></applet>*/ public class DialogTester extends Applet { public void init() { Container container=this.getParent();//this ;why not create object of the class and call the function while(!(container instanceof Frame)) { container=container.getParent(); } Frame parent=(Frame)container; Dialog myDialog=new Dialog(parent,false); myDialog.setLocation(320,240); …

Member Avatar for VernonDozier
0
112
Member Avatar for 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 [code] import java.sql.*; public class Test3 { public static void main(String[] args) { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); /* the …

Member Avatar for akulkarni
0
149
Member Avatar for akulkarni

i have to print 1 3 2 4 5 i the input output should be 1 3 2 4 5 4 5 6 9 9 11 15 20 26 i am getting a weird output my code is [code] import java.io.*; class nik1234 { public static void main(String args[])throws IOException …

Member Avatar for Antenka
0
187
Member Avatar for akulkarni

i am not getting the desired output(the contents in a text file which i have saved in the jdk bin here is my code i got. Also what is return in the try catch block i wanna know. it says file not found [code] import java.io.*; class FileDemo { public …

Member Avatar for akulkarni
0
155
Member Avatar for akulkarni

i wish to print sll the combinations of digits of a number eg 123 gives 321 132 231 132.... [code] class numbers { public static void main(String args[]) { int num=123; int x=num%10; int y=num/10; int z=100*x+y; System.out.println(z); } } [/code] this is all my brain is letting me to …

Member Avatar for JamesCherrill
0
107
Member Avatar for akulkarni

[code] i want a program which asks the user to type the password. If he goes wrong three times exit.this is my code import java.io.*; class password1 { public static void main(String args[])throws Exception { String pass="samarth"; boolean flag=false; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String [] password=new String[20]; int i; for(i=0;i<3;i++) …

Member Avatar for mvmalderen
0
196
Member Avatar for akulkarni

[code] i read that a method that is is using throws clause must be mentioned in the try and catch block.So when we use "throws IOException" in the following program why dont we use try and catch import java.io.*; class testthrows { public static void main(String args[]) //throws IOException { …

Member Avatar for akulkarni
0
105
Member Avatar for akulkarni

[code] not clear with the basics of nullpont error; trying to create student database import java.io.*; class student1 { String name; int id; public void getdata(String name1,int id1) { name=name1; id=id1; } public void putdata() { System.out.println("\t"+id+" "+name); } } class student { public static void main(String args[])throws IOException { …

Member Avatar for JamesCherrill
0
226