35,586 Topics

Member Avatar for
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
122
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
776
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
259
Member Avatar for libathos

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

Member Avatar for libathos
0
108
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
342
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
310
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
177
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
572
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
125
Member Avatar for Valiantangel

Hi i came up with the following code for my Assignment.It works.What i dont understand was the following code, the rest of the code i did myself. if ( value == 1 ) smallest = randomNum; Why do i need to assign value to 1? Rest of my codes System.out.println("How …

Member Avatar for Valiantangel
0
84
Member Avatar for prnjn

Hi. Sorry for this kind of post in this forum.. But i am in serious trouble and need help. My 6th semester of B.E (computer science) will end on 28th-may-2012 (final exams going on now ) And after that i need to do a major training of 45 days . …

0
72
Member Avatar for lokis
Member Avatar for Valiantangel

I hav this code here that prompt me for only 1 randomNum.I know i need a second loop.how can i go about doing it public static void main(String[] args) { int ii=0; int value; int randomNum; System.out.println("How many integers shall we compare? (Enter a positive integer):"); ii = input.nextInt(); randomNum …

Member Avatar for prnjn
0
121
Member Avatar for GeekTool

for (int year = 1; year <= 10; year++){ amount = principal * Math.pow(1+rate, year); principal = amount; System.out.printf("%d%20.2f\n",year,amount); for (int year = 1; year <= 10; year++){ amount = principal * Math.pow(1+rate, year); System.out.printf("%d%20.2f\n",year,amount); // what is the difference between these two?

Member Avatar for prnjn
0
131
Member Avatar for sid78669

I am working on a project where i need to dynamically count how many buttons need to be added to a certain panel. Each button press has to change a variable in the parent class and then to excute generation of a child panel which also dynamically generates buttons. my …

Member Avatar for NormR1
0
252
Member Avatar for DEAD TERMINATOR

I'm working on a guessing game where the object is where the player is given a board of 25 symbols and asked to try and guess the location of 6 hidden symbols. However, I've encountered two bugs whose cause I cannot identify. 1. Regardless of whether the guess is a …

Member Avatar for NormR1
0
167
Member Avatar for EPerminas

Hello everyone, for example, I have name.txt file. It contains three lines of text (see below): *Roses are red% Sky is blue% JAVA is cool%* All lines ended with % symbol. I need to count how many every line have characters and which character is repeated max and min times. …

Member Avatar for JamesCherrill
0
371
Member Avatar for Ronene

Hello , I'm trying to solve a "known problem" in XPath 1.0 . From [msdn](http://msdn.microsoft.com/en-us/library/bb341675.aspx) : "***Although the ordering of returned collections is not specified in the XML XPath Language 1.0 Recommendation, this extension method returns nodes in document order. Note that nodes are returned in document order even when …

0
123
Member Avatar for Annuscha

Hi, I've been strugelling with this code for days now, I new at javascript and really need help. This code worked perfectly and then just stopped working. I want the divs to change on a mouseover event, so basically when you hover over a td it goes to a other …

Member Avatar for phfilly
0
239
Member Avatar for kalz

HI I am developing a web service client using netbeans ide . I have used the code completion feature to implement the submit message method : import javax.xml.bind.JAXBElement; import uk.co.csoft.www2.dtd.sendsms5.Message; import uk.co.csoft.www2.dtd.sendsms5.ObjectFactory; import uk.co.csoft.www2.dtd.sendsms5.Recipient; public class Main { public static void main(String args[]) { //Recipient r = new Recipient(); //Message …

Member Avatar for kalz
0
2K
Member Avatar for PF2G

Hi, I'm working on a website where i have the list of all products and its info: image, description, reference and a button to see more images of the product. I want to create a checkbox that when is checked all the info is hidden except the image. I'm using …

Member Avatar for stbuchok
0
268
Member Avatar for arathy nair

Hi all, I actually need to use a sorted map.So i tried using Tree Map.But the problem is that This works well with sort key having values upto 9. With more than 10 items I see abrupt results with sort key arranged in the order = 1, 10, 11,12,--------17, 2, …

Member Avatar for JamesCherrill
0
220
Member Avatar for socialbutterfli

I need Help Here /* Name: Ashley Powell File Name: Employee */ public class Employee extends Person { private double annualSalary; private int hiredYear; private String ID; public Employee(String initialName, double initialSalary, int joinedYear, String id) { super(initialName); annualSalary = initialSalary; hiredYear = joinedYear; ID = id; } public void …

Member Avatar for socialbutterfli
0
1K
Member Avatar for jfox1988

Hi, I am conducting some research for a possible application and need some people to fill in my questionnaire. If you could fill this in for me it would be much appreciated. It will only take 1 minute max. Thanks https://docs.google.com/spreadsheet/viewform?formkey=dHpUYnE1RWhQcXRQNHhfQzEyZk9zYlE6MQ

-1
152
Member Avatar for EPerminas

Good evening, How do I need to put string into array characted by character? For example: I have a string "WELCOME". Then I can call command coolarray [ 3 ] and I got a letter L ? Thanks!

Member Avatar for NormR1
0
279
Member Avatar for erms

Hi, I'm using the getRGB function to get the color of a pixel of a BufferedImage. It returned a number like 2001231. What I want to do is use setRGB to set the color of this pixel to something so that getRGB returns 2000000 instead of the original value. How …

Member Avatar for NormR1
0
271

The End.