35,618 Topics

Member Avatar for
Member Avatar for interjuan

Hi everyone, Could some one please tell me or show me the entire codings of how to insert a string to a thml code....like: to "http://www.google.co.uk/" i want to search a string and get the source code of the page result,and one more thing: how can i found a specified …

Member Avatar for CrazyDieter
-1
98
Member Avatar for jiraiya

Hi all, I'm having a compilation problem relating to some Chinese and Japanese characters that I have hardcoded into a hash table. When I compile this code inside an IDE like Eclipse or Netbeans I get no warnings, but when I do it outside of the IDE I get the …

Member Avatar for jiraiya
0
125
Member Avatar for jiraiya

Hi everyone, I'm having some trouble creating an executable jar file that accesses data txt files when running. I've written a program using Netbeans that reads in both images and data and uses this data while the program is running. But when I try to run the program using the …

Member Avatar for jiraiya
-1
70
Member Avatar for guyfrompluto

Simple program to check whether a number is prime or not. Something is seriously wrong because every result I get is 'false'. Help me out please. Thanks in advance. [CODE] class primeTesting { public static void main(String[] args){ int i=7; //changing the value everytime always gives false.... ??? boolean bool=false; …

Member Avatar for guyfrompluto
0
118
Member Avatar for SashaC

I have two issues with my code: 1.When I run the code the components of the GUI are very large. I have attached a screen shot of what it looks like. I'm not sure how to change the size. I've tried using: nameOfButton.setSize(12,12); but that doesn't work. 2. I'm new …

Member Avatar for JamesCherrill
0
180
Member Avatar for nssltd

Sorry for the nooby question, but i've always wanted to make an instant messenger, I figured java was the best language as it is Multi platform and extremely portable. I wondered if their was any open source code i could look at to help me. Thanks

Member Avatar for nssltd
0
172
Member Avatar for curdiMan

hi, im using tomcat and im trying to do simple submit form. before submiting i must chek the fields. the problem is that my submit functuin dosnt sends to the server the fields values. help... how can i submit but check all the fields first??? here is my html [code] …

Member Avatar for curdiMan
0
143
Member Avatar for Ghost

Hi everybody: I want to make a java application, but I can't think of anything to make. Any ideas would be appreciated. Thanx, C++

Member Avatar for rolypoly2308
0
284
Member Avatar for asiyak

i m final year engg student,i need a mega project in java,plz suggest me some ideas.

Member Avatar for peter_budo
0
81
Member Avatar for Guest51

OK here is my program so far and I'm getting a compile error on my constructor located in class Inventory on line 50 [CODE] // Inventory Program Part 2 import java.util.Scanner; //Inventory program //This program monitors DVD inventory, price, and stock public class Inventory {//new class inventory public static void …

Member Avatar for NormR1
0
138
Member Avatar for M.Jama

I would be thankful if some one explain me where to start in order to access a database in Java on Eclipse Thank you in advance

Member Avatar for M.Jama
0
73
Member Avatar for dupowdis

Thanks in advance for your help, everyone. ...So basically, for a program I have to do for this internship, I have to find a way to extract certain lines of temperature, density, and frequency data from a .txt file, and then pop them in 3 different string arrays. A typical …

Member Avatar for dupowdis
0
125
Member Avatar for papay0011

[code]import java.io.*; class Factorial1 { int fact(int n) { if(n==1) System.out.println(1); else return (fact(n-1) * n); } } public class Recursion11 { public static void main(String args[]) { Factorial1 f = new Factorial1(); System.out.println("Factorial of 3 is " + f.fact(3)); System.out.println("Factorial of 4 is " + f.fact(4)); System.out.println("Factorial of 5 …

Member Avatar for NormR1
0
84
Member Avatar for bin shahid

Hello, I want to retrieve weather information of 'Chittagong' city of 'Bangladesh' country from "BBC.com/weather" from java application. but i don't understand where from i should start. Please give me suggestions. Its urgent. Thanks, Shahid

Member Avatar for NormR1
0
203
Member Avatar for yurixzach

Hi... I really have a big problem in this program... I dont know how to properly read a user input from a text file. I will really appreciate your help. thanks. [QUOTE]import java.util.*; import java.io.*; //--------------------------in this part is my problem----------------------// public void openFile() { File myFile = new File("students.txt"); …

Member Avatar for NormR1
0
138
Member Avatar for stark025

Hi. I am a student, and I have an report to do for our Computer Programming Fundamentals class. We are required to demonstrate the use and function of constructors and the JOptionPane class. I have implemented a simple age calculator using Java as my demo, and I intend to go …

Member Avatar for NormR1
0
221
Member Avatar for jefferlyn92

create a method sumOfDigit(String str) compute and display the sum of the digits found in str Example: String str = "1234hello12678"; sumOfDigit(str) -> returns 34 ---need some codes guys! can you HELP me?!

Member Avatar for ANDIEniable
0
648
Member Avatar for seanvitalaim

Can someone please explain to me why I cannot move variables from object to object. I've been getting no sleep and burning myself out learning java and it is driving me crazy here is the example. [CODE]import static java.lang.System.out; class ONE { public static void main(String[] args) { TWO addition …

Member Avatar for NormR1
0
99
Member Avatar for aditya027

public class Sorting { public static void main(String[] args) { int j=10; int[] arr=new int[10]; for(int i=0;i<arr.length;i++) { arr[i]=j; j+=10; } int num=Integer.parseInt(args[0]); bsearch(arr,0,10,num); } static void bsearch(int[] arr2,int first,int last,int key) { while(first<=last) { int mid=(first+last)/2; if(key==arr2[mid]) { System.out.println("Found the key"); } else if(key<arr2[mid]) { last=mid-1; } else if(key>arr2[mid]) …

Member Avatar for NormR1
0
75
Member Avatar for khunmato

Hello! I have constucted a code for the card game 21. The code uses inputDialogs to "talk" the the player. I thought my shool assigment was over by doing just that...I was wrong, our teacher dumped a new bomb on us. With these kind words; [I]Develop task 5 (Twenty-one card …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Guest51

I am a student working on an inventory app. Until this current assignment I felt I half way knew what I was doing. What is required is the following: [B]~Modify the program to handle multiple items:[/B] should work with this code added - it worked on another program [CODE]//Prompt user …

Member Avatar for JamesCherrill
0
205
Member Avatar for john butler

here is one program which has 1 abstract class without abstract method. its also works fine. Then what the use of abstract class, any how it does not allow to create objects, we can use this with concrete class to implement method defined in abstract class which we have to …

Member Avatar for musthafa.aj
0
114
Member Avatar for arete

I'm trying Euler problem 3 on [url]http://projecteuler.net/[/url] for fun. I think I have a program that works (with very small numbers), but it takes too long. Can anyone give me some hints to improve speed? [CODE] /** * The prime factors of 13195 are 5, 7, 13 and 29. * …

Member Avatar for Taywin
0
153
Member Avatar for khurram.1987

Hello, I am creating TextChat site .. on java Servlet .. I want to know the mechanism of identifying each user to forward message updates between each other in that perticular chat room. whether it i by knowing there ip-adress OR how. THANKS to all Helpers ....

0
115
Member Avatar for RaniThomas

Hi All, Can i Compile a java program without a single line in a main method. If s, how it works. Please explain. Help Me.

Member Avatar for Taywin
0
158
Member Avatar for gampalu

Hi, I am trying to load an image into an applet, however unsuccessfully. What's wrong here? [CODE]package sess31; // Import the AWT graphics package import java.awt.*; import java.applet.*; public class myownapplet extends Applet { Image image; public void init() { // Load image //image = getImage(getDocumentBase(), "show14.gif"); } public void …

Member Avatar for Alimuzzaman
0
692
Member Avatar for chinee

i created a flash screen but all i could get is a blue screen not even the picture is comin up and not even the menu is coming up.and plus there are errors from place order to change order with the variable and the equal sign. so can any one …

Member Avatar for NormR1
0
248
Member Avatar for Derrin

Hello everyone and thanks in advance for your help. I am having trouble with a piece of java code for class and have asked the insructor for help and he has only helped in confusing me further. The assignment was due Sunday and I have been in the hospital since …

Member Avatar for JamesCherrill
0
177
Member Avatar for moddie

Hi, I'm trying to create an applet that allows users to login with their usernames/passwords. Users will also be allowed to register a new account. Question is, how do i create this? Where do i store the username and passwords? Thanks in advance

Member Avatar for NormR1
0
142
Member Avatar for Agent Cosmic

What's the the difference if I were to use "this.x=y" instead of just "x=y"? All I know is that this refers to the object created from the class. Also what's the difference if I were to use "this.method()" as compared to creating a new class like so, "Class cs = …

Member Avatar for JamesCherrill
0
101

The End.