Forum: JSP 4 Days Ago |
| Replies: 1 Views: 226 I tried and succeeded in pulling out the info from the ms access database tables. But I am not able to pull out the images. They are in the text form.
Is there any way to overcome this
this... |
Forum: Java 11 Days Ago |
| Replies: 2 Views: 249 I am a bit familiar with java, but I am pretty ambitious and I want to build a simple book store.
I need some suggestions and help.
I can create a simple homepage using HTML which has links,... |
Forum: Java 11 Days Ago |
| Replies: 10 Views: 513 try something like this
count=0;
for( int m=1 ; m <10000; m++)
{
sum=0;
for ( int n=1; n<m; m++ )
{
if ( m %n == 0 ) |
Forum: Java 11 Days Ago |
| Replies: 10 Views: 513 Scanner read = new Scanner(System.in);
System.out.printf(" Enter ur number: ");
num = read.nextInt();
There is no need to take input from the user. You are checking for perfect numbers... |
Forum: Java 12 Days Ago |
| Replies: 2 Views: 284 That is a fantastic resource............thanks a lot...
But I figured out how the code works...... |
Forum: Java 12 Days Ago |
| Replies: 10 Views: 513 I think this is a homework problem.....I did the coding and the first 4 perfect numbers are:
The perfect number is 6
The perfect number is 28
The perfect number is 496
The perfect number is... |
Forum: Java 12 Days Ago |
| Replies: 2 Views: 284 public void init()
{
// Assign values to the rectanagle coordinates.
// Add the MouseListener to your applet
}
public void paint(Graphics g)
{
// Rectangle's color |
Forum: Java Oct 16th, 2009 |
| Replies: 3 Views: 329 Hi Guys! Can you kindly run this code in your PC and see if are getting the correct output.... maybe there is something wrong with the path variable etc in my system...
thanks
I want to print... |
Forum: Java Jun 23rd, 2009 |
| Replies: 3 Views: 1,938 -------------------------------------------------------------------------------------
Thanks for the tip........I will use the scanner function and see if it does the job........ |
Forum: Java Jun 22nd, 2009 |
| Replies: 3 Views: 1,938 Hi guys,
I need to open a file and extract numbers from it.
The numbers in the file are like this
12 34 23 12 00 10 02 12
22 33 10 12 09 03 03 93
etc
I am able to extract the numbers in... |
Forum: Perl May 21st, 2009 |
| Replies: 5 Views: 446 does anybody know a good forum to go to. I know that daniweb is good for java and c++
thanks! |
Forum: Perl May 21st, 2009 |
| Replies: 5 Views: 446 print ( "fred" gt "harvey" );
what does this print. How can we compare strings. If it was single characters, we can base our comparisons using ASCII. |
Forum: Java May 15th, 2009 |
| Replies: 2 Views: 478 Thanks for the link. It was easy to follow, finally generated the html files. [:)] |
Forum: Java May 15th, 2009 |
| Replies: 2 Views: 478 I have to generate html files from .java files. I tried generating from eclipse but was stumped.
there are just 4 files. Can somebody help me out. Send me a pm please!!! |
Forum: C++ May 5th, 2009 |
| Replies: 2 Views: 310 I am not familiar with C code. I want to convert this code to C++ and run it
any help is appreciated.
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include<cstdlib>
using... |
Forum: Java Apr 24th, 2009 |
| Replies: 4 Views: 1,367 Thanks for the help. It is working now. I know that this is pretty bold for a beginner. But I am understanding the concept behind it and I think that by understanding more such programs I will be... |
Forum: Java Apr 23rd, 2009 |
| Replies: 4 Views: 1,367 |
Forum: Java Apr 23rd, 2009 |
| Replies: 4 Views: 1,367 I am trying to execute this program, but I am getting errors
this is the code
import java.util.*;
public class DateUtils
{
static final int MILLS_IN_DAY = 24*60*60*1000; |
Forum: Java Apr 16th, 2009 |
| Replies: 4 Views: 790 I created package/ex01/Person.java and it compiled.
however when I try package/ex01/Testing.java it is not compiling
Testing.java:9: cannot find symbol
symbol : class Person
location: class... |
Forum: Java Apr 15th, 2009 |
| Replies: 4 Views: 790 I am unable to execute these codes. This code is a replica from a website.
I used Testing.java and Person.java. Should the files be named comparable.ex01.Testing.java and... |
Forum: Java Apr 12th, 2009 |
| Replies: 2 Views: 308 I think I fixed the problem..... |
Forum: Java Apr 12th, 2009 |
| Replies: 2 Views: 308 import java.util.Scanner;
public class testcircle {
public static void main(String[] args) {
System.out.println("welcome");
double i;
Scanner sc =... |
Forum: Java Apr 10th, 2009 |
| Replies: 7 Views: 717 OMG! you are right....I got the answer..thanks a lot! |
Forum: Java Apr 10th, 2009 |
| Replies: 7 Views: 717 i executed all three:
java testcircle circle CircleShape |
Forum: Java Apr 10th, 2009 |
| Replies: 7 Views: 717 Exception in thread "main" java.lang.NoSuchMethodError:main
this is the error which I am getting |
Forum: Java Apr 10th, 2009 |
| Replies: 7 Views: 717 public abstract class CircleShape {
public double radius;
public CircleShape(){}
public CircleShape(double radius) {
this.radius=radius;
}
public void setradius(double radius){... |
Forum: Java Mar 29th, 2009 |
| Replies: 3 Views: 596 Hi! this is a lengthy post/I hope its comprehensible
basically this program should calculate and display the area of a circle.....but it shows area as 0.0
for every value of radius... |
Forum: Java Mar 23rd, 2009 |
| Replies: 2 Views: 1,392 Hi guys!
Its working now........ I read somewhere that we have to restart the system to make it pick the path.......
this has caused me frustration to no end....so don't forget to RESTART......... |
Forum: Java Mar 23rd, 2009 |
| Replies: 2 Views: 1,392 Hi,
I formatted my pc and restored everything back and now I forgot how to install jdk and set the path. I am using windows vista.....
I created a CLASSPATH in system variables as follows... |
Forum: Java Feb 9th, 2009 |
| Replies: 5 Views: 713 The compiler gives an error about something being unbounded |
Forum: Java Feb 9th, 2009 |
| Replies: 5 Views: 713 class Grade {
public static void main (String args[]) {
final int score = Integer.parseInt (args[0]);
final char grade;
if (score >= 90) {
grade = 'A';... |