35,586 Topics

Member Avatar for
Member Avatar for Kadence

I'm looking for a graphic library to create a visual for data that involves between about 100 to 300 data points. Each set of data points covers a full day - so one day would have a few hundred data points total, and I'm looking to plot a graph of …

Member Avatar for diafol
0
253
Member Avatar for James 90

import java.util.Random; public class RaceMove { int hare = 1; int tortoise = 1; public int torMove() { Random number = new Random(); int i = 1 + number.nextInt(10); switch (i) { case 1: case 2: case 3: case 4: case 5: tortoise += 3; break; case 6: case 7: …

Member Avatar for stultuske
0
1K
Member Avatar for Saboor880

Hello to all! I am learning java. And now I have started section of web apps in java. I have learnt initial level web development by coding on notepad. Now I am using netbeans IDE for java. But in case of web development i am facing a problem using netbeans. …

Member Avatar for JamesCherrill
0
426
Member Avatar for divinity02

hi everyone I have my individual assignment to do and there is an instruction in it am kinda confused as to how to go about doing it and i dont understand what it meant in round one, it consist of 4 question (random) 1 -4 and is deemed the "Add …

Member Avatar for jwenting
0
90
Member Avatar for darren2005

Hi, I am having issues with the following code: var seachHttp = function () { var cssSheets = document.styleSheets, // Loaded CSS Sheets i =0, il = cssSheets.length, // Counter and limit for sheets j, jl, rules, rule, // Counter and vars for Rules inside a Sheet stylesToSearch = [ …

Member Avatar for bigtalk
0
424
Member Avatar for shamuh2021

I am very much interested in learning programing and software development skills. However i know sotware testing skills, knowledge of hardware, software applications, information security, networking. I do lot or research to learn to develop and desing website with databse integration. I am not financially fit to invest in all …

Member Avatar for shamuh2021
0
222
Member Avatar for noobjavacoder

OK, so i do have a perfectly good working code but im trying a different way and its bugging me why its not working. any help would be much appreciated. the program suppose to list all the available directories and then ask the user which directory he's searching for, takes …

Member Avatar for Taywin
0
239
Member Avatar for Violet_82

Hi guys, are we allowed to upload .java files to posts on the forum? the file uploader says not allowed, but I couldn't find the allowed/not allowed list of files anywhere/ thanks

Member Avatar for Violet_82
0
665
Member Avatar for wateryman96

Hello guys, so im new to programming, but i've been given task by my school to create a simple games(flappy bird clone) in Java Console, without using java swing. my only help would be a library called Enigma. my concept are simple like this character=*, pipes=I can anyone give some …

Member Avatar for rproffitt
0
47
Member Avatar for Bartosz

Hi there, I have two seperate programs - one is a Client, and the other one is Server. I am trying to send an object from Client to Server, but I am getting following error: Exception in thread "main" java.lang.ClassNotFoundException: airtrafficcontrol.AirplaneDetails at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at …

Member Avatar for JamesCherrill
0
295
Member Avatar for Doogledude123

Curious who's all used MiGLayout and what everyone's thoughts are on it. Is it a prefered layout over others? If so, which? What do you like and dislike about it? Is there any other 3rd Party Layout's you would recommend? What features do they have that make them recommended?

Member Avatar for JamesCherrill
0
126
Member Avatar for Liam_4

I need to design a histogram that prints out an "*" for certain intergers and the integers need to be read from a text file. I think I got the hole "*" thing down, but the file reading isn't working not matter what I try so I could use a …

Member Avatar for JamesCherrill
0
138
Member Avatar for dcampbell

This is a proto type of a much larger project. I have items that different values and only on needs to be seleced. Then I want to compile alll selected components to new html window for printing or export to .pdf. I have gottent to the end of my knowledge …

Member Avatar for dcampbell
0
227
Member Avatar for noobjavacoder

First question, is there any difference between binary search and recursive binary search??? I looked through google and everything but couldnt find any useful info. I did find irritative and recursive but that was it. and second question: Given a desired search value of 98 and an array with the …

Member Avatar for invisal
0
1K
Member Avatar for james6754

Hi everyone this is my first code snippet so be gentle.. I have written a basic client/server chat program that uses multithreading for listening and sending. I welcome any improvements or discussion... Thanks James

Member Avatar for Arpit_1
2
12K
Member Avatar for noobjavacoder

public class Vegetable { private int calories; public Fruit (int calories){ this.calories = calories; } } public class Onion extends Vegetable { private String color; public Onion (int calories, String color) { super(calories); color = color; } } Why doesn’t Onion constructor method properly set the color? A. The Vegetable …

Member Avatar for noobjavacoder
0
183
Member Avatar for LibraryCode

Once i press scan button,i enter info into the fields and after pressing the add info goes to the set.Once i press display all i can see info in JPaneShowMessageDialog ,so all scanned info after added pressed. But how to display info in the same textfields , by pressing the …

Member Avatar for stultuske
0
84
Member Avatar for kouty

Hello I try to learn the String.charCodeAt(index) method Here is a snippet that demonstrate that the first index is allways 48 independentely of the character. How work's it (I was expecting that each letter has her unicode-number equivalent. function unicoding(str) { for (i = 0; i < str.length; i ++) …

Member Avatar for Traevel
0
383
Member Avatar for fazal004

I have a form on footer that display on all pages. I want the form not display when I click on contact us button in menu and there should be no form on footer at that page, any help from web developers. Regards

Member Avatar for diafol
0
175
Member Avatar for Saboor880

i want link of plugin for web development for netbeans IDE 8.0.2 so that i can download it.

Member Avatar for jwenting
-1
127
Member Avatar for ahsan1

This is the program in java which is an interface to stanford postagger. I have attached a copy of it. I am using netbeans 6.7.1 . I have placed the model file which is "left3words-wsj-0-18.tagger" in the bin folder of jdk and also placed the stanford-postagger.jar in that folder. I …

Member Avatar for Hargung
0
263
Member Avatar for Mohamed_26

Hello, I am trying to build a basic unit framework. I have got this method in a class called KUnit3 public static void checkEquals(double value1,double value2) { if(value1 == value2) { addToReport(String.format(" %f == %f", value1, value2)); passedChecks++; } else { addToReport(String.format("* %f == %f", value1, value2)); failedChecks++; } } …

Member Avatar for JamesCherrill
0
264
Member Avatar for kayleigh0411

I am trying to write a generic class with at type parameter T, and add a method that takes an ArrayList of type T and returns a standard deviation as type double. My program is compiling with no errors, however the standard deviation is incorrect. It is outputting the standard …

Member Avatar for Traevel
0
929
Member Avatar for loserspearl

I am trying to make a Java program that uses a tree to collect folder and file information about a directory and display it to the user. Essentially a java version of the tree DOS command. The user inputs a path to a folder and the command window will spit …

Member Avatar for JamesCherrill
0
414
Member Avatar for Adhya_1

So, my teacher gave me this assignment to write a program to enter a four digit number Andries each digit of the number in a separate line. For example, if a user inputs 1234, the output should be: 1 2 3 4 I'm stuck. Please help ASAP. We have learnt …

Member Avatar for Lucaci Andrew
0
244
Member Avatar for divinity02

hiya all i am doing a program here on switch case, have a fair idea on switch case but the lecturer now decides to teach us it the program goes like this. have to find the retail price, commission and enter the employee id num but i having some problems …

Member Avatar for ObSys
0
193
Member Avatar for divinity02

this all (especially j) but anyone can make their input it is me again, me and my games and them, i am currently trying to build this game but this one is a counting numbers game. am sure you all must have come across it at some point time. i …

Member Avatar for JamesCherrill
0
370
Member Avatar for Niana

I have in my program an object of a class. When I try to print it out I am getting "Address@33909752" - guessing it is a hash code. I also tried to override toString method, but still didnt help Address address = new Address(city, country, houseNo, street, postCode); Is there …

Member Avatar for JamesCherrill
0
139
Member Avatar for Niana

I am having trouble getting value from getter. I am trying to access the getter method from another class but it returns null. In my Registration Class I have a constructor and getters. In my Client Class I have set the values using Scanner. I would like to create Report …

Member Avatar for Niana
0
2K
Member Avatar for LibraryCode

I have a jbutton ,which once clicked ,counts the clicks: int clicked ; private void jButtonScanActionPerformed(java.awt.event.ActionEvent evt) { clicked++; } My question is how to attach this click output(once the button is clicked ) to jtext field to see the click count? private void jTextFieldParcelIDActionPerformed(java.awt.event.ActionEvent evt) { }

Member Avatar for LibraryCode
0
255

The End.