32,205 Topics

Member Avatar for
Member Avatar for asif49

I'm trying to learn how to implement a LinkedList by hand and I notice that when the LinkedList needs to be traversed with a for loop that instead of the usual for loop structure used for traversing arrays.... for (int i = 0; i<length; i++) what is used instead in …

Member Avatar for asif49
0
108
Member Avatar for MasterHacker110

When i compile my java programs (.java) they all compile into .class file. when i try to run the class file with this command : " java C:\Users\User\Desktop\JavaProgram" It gives the following error: "Error: could not find or load the main class" how do fix this and how do i …

Member Avatar for MasterHacker110
0
243
Member Avatar for MasterHacker110

I have ecidentaly set the .class files to open with notepad everytime. How do i set them back to defualt? i have tried to manually browse to find with what it should open but i dont know with what it should open? Thanks...

Member Avatar for MasterHacker110
0
130
Member Avatar for venkateshyeluri

I am developing an java application for for login autentication form, I have pre saved username and password in my database. When admin enter his credetials, it validates to my DB and gives access to actual application Now, my application is used by admin and database is managed by DBA. …

Member Avatar for JamesCherrill
0
214
Member Avatar for TTTHXC

i have a program that converts a text string into a hash sequence using parseInt(). but parseInt() keeps throwing a NumberFormatException. any ideas why? is it becuase i'm using <= instead of = in my for loop? EDIT: ingnore r. it's not being used. sorry. package test; import java.util.Random; import …

Member Avatar for JamesCherrill
0
259
Member Avatar for anuj_sharma

Hi, I need to write a program which can decrease the free disk space. For eg, if the free disk space is 5GB, the application should ask the user how much space do you want occupy. Application should take the input eg, 2GB and decrease the disk space to 3GB. …

Member Avatar for anuj_sharma
0
111
Member Avatar for peck3277

Hey guys, I'm trying to develop a simple tool. I'm having but I'm having trouble accessing some swing components. My gui basically has a jtabbed pane with two, jbuttons beneath it. Each tab is identical except for the title, it has a jtextarea and two jbuttons. These buttons perform an …

Member Avatar for Zaad
0
142
Member Avatar for jade_91

So basically I have created a linked list which allows me to enter numerical data into a list and for it to be sorted, added to and deleted but I need to add text into the list as well but not sure how to go about it I've tried changing …

Member Avatar for Zaad
0
424
Member Avatar for GTech4life

Can someone help me with the code for this assignment i have for school using dr java > Project Assignment:Write a method drawFace() which will draw a face on the picture. Your face should have eyes, mouth and text beneath it that provides it with a name.

Member Avatar for NormR1
0
311
Member Avatar for GeekTool

double population = 7000000000; long population2 = 7000000000; > > I have to write down world population, so i used both double and long primitive types. However, both of them says that this number is out of range. What can i do with this? i made a google search but …

Member Avatar for sabbib
0
152
Member Avatar for weeraa

This post about J2ME in Netbeans. Actually I'm new to mobile development and so interest to learn it. I want to create a jar file and should be attached database to it. (Netbeans has built in database creating facility, which i want to use) There are a lot of codes …

Member Avatar for weeraa
0
326
Member Avatar for crazymidget01

The method I am trying to write is by passing two arrays, one an array of integers and boolean array, then find the smallest, then next smallest, then next next smallest, etc values in the array "a". Outside of this method, the boolean at the corresponding index to smallest value …

Member Avatar for crazymidget01
0
242
Member Avatar for hous3aholik

Im trying to create a deck of cards using enums. I already have my enum declared, but I'm stuck in how exactly to create the deck of cards using a boolean array. So far i tried to initialize my constructor, but I don't know what direction to take now. Any …

Member Avatar for JamesCherrill
0
737
Member Avatar for uetgate

Plz can anybody help me.i want to store some records in files.i m working on a project.my teacher told me to use tokens.i dun have any idea about that.plz help me thanx in advance

Member Avatar for NormR1
0
112
Member Avatar for prem2

Hi , I have implemented the Hashtable and enumeration concepts in java.The program is executed fine but i have a doubt.When i try to print the keys and elements in the Hashtable by using enumeration ,it start prints from the second key and second element. Did any one know why …

Member Avatar for JamesCherrill
0
170
Member Avatar for nagatron

I got this jar creator java code in the internet. It creates a nice jar file out from your java codes but there is a a problem. If you you run the jar file, it creates an error because the manifest is empty. I think there is a missing line …

Member Avatar for nagatron
0
214
Member Avatar for kunaldinde

i have a problem with execute the excel sheet in java code and also problem with execute asa same as pivot table in java

Member Avatar for ColmSmith
0
97
Member Avatar for bo0ga

Hey guys. I am new at programming and would appreciate any help I can get. I want to make a program that reads the HTML code of a web page, and writes a specific line into a document. So for example, I want my code to read the source of …

Member Avatar for NormR1
0
207
Member Avatar for crash bash

Hi everyone i do not know how to do this home work +SearchFriends( char ): boolean This method is used to know if there is friends exist in friend list whose name starts with given char. For example if you called the method SearchFriends (a) and there exist a friends …

Member Avatar for corby
0
67
Member Avatar for hg_fs2002

I am using such linked list: private Class Node { public int Num1; public int Num2; } LinkedList<Node> list = new LnkedList<Node>(); Node n = new Node(); n.Num1 = 10; n.Num2 = 100; list.Add(n); but now I don't know how to access Num1 and Num2 using my LinkedList. For example, …

Member Avatar for corby
0
127
Member Avatar for programing

here code for make new file .. how i can make it to insert data to file and open it /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package files; import java.io.*; import java.util.Scanner; public class Files{ public static …

Member Avatar for NormR1
0
785
Member Avatar for jaysb

hello sir i have python code can u convert it into java . code is below..... plz help............ # Ad-hoc algorithm for copy-move forgery detection in images. # Implemented by - vasiliauskas.agnius@gmail.com # Robust match algorithm steps: # 1. Blur image for eliminating image details # 2. Convert image to …

Member Avatar for TrustyTony
0
4K
Member Avatar for GeekTool

import java.util.Scanner; public class Interest { public void determineInterest(){ Scanner input = new Scanner(System.in); double amount; double rate1 = 0.05; double rate2 = 0.06; double rate3 = 0.07; double rate4 = 0.08; double year; double principal = 1000; System.out.println("Please choose your bank below:\na)Ziraat Bankasi\nb)Halk Bankasi\nc)Is bankasi\nd)City Bank"); String bankname = …

Member Avatar for NormR1
0
260
Member Avatar for libathos

Does anybody know any tool that can transform automaticcally a java-program into uml?

Member Avatar for libathos
0
109
Member Avatar for reitzscape

client.java:8859: error: class, interface, or enum expected person.updateRequired = true; ^ client.java:8860: error: class, interface, or enum expected person.hitUpdateRequired = true; ^ client.java:8861: error: class, interface, or enum expected person.currentHealth -= misc.ran dom(30); ^ client.java:8862: error: class, interface, or enum expected } ^ client.java:8867: error: class, interface, or enum expected …

Member Avatar for NormR1
0
343
Member Avatar for ilovejava

i have to do a pyramid with a pattern like this [iCODE] 1 1 2 1 1 2 4 2 1 1 2 4 16 4 2 1[/iCODE] i just realized dani web didnt take my center pyrmaid thing it moved to the side no matter what spacing i did …

Member Avatar for JamesCherrill
0
319
Member Avatar for thompsonSensibl

Hey folks. I'm trying to make a new Fruit object each time aMethod is called. The new Fruit object's name must be unique. The problem is that the name of this Fruit object is the same name as one of the parameters of aMethod - this name is unfortunately the …

Member Avatar for JamesCherrill
0
178
Member Avatar for programing

hi .. i make this code .. but when i run it ..doesn't show whole output in window ..and its not show correct answer .. i can't find error / but its not worked welll /* * To change this template, choose Tools | Templates * and open the template …

Member Avatar for NormR1
0
576
Member Avatar for apanimesh061

public static void main(String[] args) { Set<Point> points = new HashSet<Point>(); points.add(); --- how to add point of "Point" type cureAlgor(0.01, 3,points); } Point is a pre-defined class. I want to know what to wrtie in points.add(). Please help!

Member Avatar for NormR1
0
111
Member Avatar for Valiantangel

Hi my codes works fine.When i key in ,for example, asdf 546,(f and 5 is separated by space), the programe rightly take it as invalid input ,however it takes asdf and 546 as separate type and return two "Invalid input".See below. I hav no clue why it does that oher …

Member Avatar for Valiantangel
0
126

The End.