No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
graduate 'programmer', but still learning. And looking for a job in Sydney!
Hello friends. I am trying to make an internet blacklist. I've been looking this up, but can't find anything on the internet. What are the advantages of editing the hosts file, as opposed to making some explicit website blocker? |
|
Re:
What is the best game you played so far in your entire life? |
|
Hi, I'm trying to reverse the ordering of number. I'm given an array of size.. say, 5. WITHIN a do-while loop, I must iterate from element 0 to 4. For example, if the element contains ["Apple", "Banana", "Cow", "Dog", "Egg"], the output of the do-while loop has to be: Apple … |
|
Re:
this program is 2 classes and it has 2 JLabels, 2 JTextFileds, and 2 JButtons... it convert temperatures from Fahrenheit to Celsius and from Celsius to Fahrenheit.. Class 1: [code] // Author: Helen Toma import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.GridLayout; import javax.swing.JTextField; import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; … |
|
Hello, I'm in a pickle. (Please observe the code) In the actionPerformed method, I don't know how I can get the value of the variable 'minutes'. I can get 'hours' by e.getActionCommand(), but can't do minutes that way. I need to get both 'hours' and 'minutes' at the same action. … |
|
Hello. I'm trying to make my first java executable file. My Java project imports images from a different directory, and uses them. After I make the executable file (through Export in Eclipse) and I delete the directory of images, the executable doesn't show the images. How can I make the … |
|
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 … |
|
I'm having trouble identifying the functional dependencies! relation schema is SCHEDULE = {course, teacher, time, room} What are the functional dependencies for: 1. The same course is always taught by the same teacher? 2. Different courses can never be taught in the same room at the same time? 3. The … |
|
I'm having trouble finding the Boyce-Codd Normal Form (BCNF) decompositions of the relation schema: SCHEDULE. SCHEDULE = {course, teacher, time, room} Functional Dependencies (FD): course -> teacher, course, time -> room, teacher, time -> room. Please help me decompose with respect to the FDs, that are faithful and unfaithful! . … |
|
Hi there, I have a dynamic programming problem and I have NO idea where to start. You are given an input of integers and mathematical expressions. For example, you are given: 5 + 3 * 2. The program processes this input. It ignores the BEDMAS rules, and returns the highest … |
|
Hi there, I am [B]stuck[/B] with a problem, and don't know where to start. I am given a series of cities, and their locations in [B]longitude and latitude[/B]. The goal is to find the two cities with the shortest distance. I have an algorithm which, given the geographical locations (longitude … |
|
Hi, I have an array, and it must be sorted. The array's objects have associating values. For example, an array of city details contains these information [I]per object[/I]: (String) cityName, (double) cityNumber, (int) cityNumberOfPets. [CODE] //e.g. city[0] = ("Chicago", 243.2, 14); city[1] = ("New York", 25.3, 15432); city[2] = ("Dallas", … |
|
Hi I am having trouble at finding a way to iterate through a string of alphabets until a digit is reached. e.g. iterating through [CODE] //Using a scanner, I can use scanner.getNext() to get the first word. //There may be more than one word; there is no way to tell; … |
|
Hi there, I am trying to get the words (city names) from a user input. For example, the inputs: [CODE] String input1 = "Pyeongchang 135135.13 531.351"; //Note: "Pyeongchang" is of one word. String input2 = "New York 3543.25 25352.523532"; //Note: "New York" is of two words. [/CODE] I need to … |
|
Hello folks. I am stuck in a problem where I must pair objects of an array with unique partners. I have one array. I must pair each element to each other. Incorrect pairing algorithm would result with repetitions, and pairing with itself. e.g. [CODE]String[] codesArray = {"A", "B", "C"};[/CODE] For … |
|
Hello there. Could you give some insightful input into my problem: My program is fed multiple lines of input. The input is composed of a name and two values of that person. Each line is of a new 'person' e.g. "James 23 15.05 Lucy 51 25.523 Kam 42.4 21.54 Jak … |
|
Hi there, I am not good with Java. Can someone explain this for loop for me please. For a for loop, to my understanding the syntax goes something like, [CODE]for(int i = 0; i < someNumber; i++) { //...some code... }[/CODE] but in this one I have seen, the for … |
|
Hi there... A little mental blockage ='-( The scenario: 1. A thief has a bag that cannot be larger than 5m^3. 2. He is a superman, and he can carry ANY amount. 3. He finds piles of valuable powders. He plans to steal them... naughty naughty. 4. Each pile is … |
|
Hi, could someone give me some idea of [B]how I can be more EFFICIENT.[/B] Basically, it is some[B] kind of a Knapsack problem[/B]. But the number of items can be in the 100000s, and my solution caters to only around 5, I think. ------- [U]The story / circumstance:[/U] A thief … |
|
Hi guys, how are you today? I have come across this assignment problem that sounds almost like a Knapsack Problem. This current problem is like the Knapsack Problem, where you must maximise what you put in your sack. But rather than trying to fit in objects that are of fixed … |
|
Hi folks. I'm making a GUI. It contains multiple JPanels. I'm having trouble making contents of other JPanels (than the first/main JPanel; others are subclasses to the first one) visible... From the first JPanel, I call a draw method to a second JPanel. This second JPanel's draw method displays a … |
|
Hi there I'm trying to check if an array area exists, e.g. [CODE]if (array[99][99].exists){ ....}[/CODE] THis doesn't work... e.g. It gives me an arrayIndexOutOfBounds error. What I need for it to do is just ignore and carry on the code. If it finds an arrayIndexOutOfBounds, fine, carry on, just ignore. … |
|
Hi folks, ThompsonSensibl, so I'm new to Python. This is probably a noob question... I want to convert a String input to an Integer. I usually do it like this: number = int(someString). However this time this approach doesn't seem to be efficient at all. So far I have: [CODE] … |