Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
85% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
4
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
2 Commented Posts
~17.9K People Reached
Favorite Tags
Member Avatar for Syrne

Hi there, I know a fair amount about programming in both C++ and Java, but I still have much to learn. I am working on a mobile application idea for Android (so it's in Java) that uses a three-dimensional room as its main component. My very general question is, what …

Member Avatar for gusano79
0
186
Member Avatar for Syrne

Hi there, I'm new to tree maps and I am trying to write my own version of the pre-defined "remove" function for Tree Maps. I know I need to have two extra functions that find the minimum and maximum values in the map that will be called within the remove …

Member Avatar for ekemaz11
0
250
Member Avatar for Syrne

Hi there, I'm attemtping to write my own version of the java "headSet" function which steps through a given tree set and returns all elements that are less than the function argument. For example: headSet(30) called for a set such as: [2, 5, 7, 18, 22, 34, 50, 76] should …

Member Avatar for Syrne
0
249
Member Avatar for Cenchrus

Hey guys, I was wondering if someone could help me interpret line by line what is happening in this code... package com.example.helloandroid; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloAndroid extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …

Member Avatar for Syrne
0
220
Member Avatar for Syrne

Hi guys, I am toying around with ArrayLists and objects and I created a quick program to add some objects to an ArrayList and print the list afterwards. I ran into an issue, though. I am overriding the toString method in order to display the names of the objects I …

Member Avatar for Syrne
0
146
Member Avatar for syed30

Hey guys I need to hand in this assingment and actually made an account for this as I know this is one of the best forums so far that I have came across about programing, so it would be awesome if someone could help me out with this. So first …

Member Avatar for Ezzaral
1
500
Member Avatar for Syrne

Hello! I was given the task to finish writing the definitions of the Treeset class methods. I'm currently at the [B]headSet[/B] and [B]tailSet[/B] functions and quite stumped. Here's what they look like currently, with no logic: [CODE]@Override public SortedSet<E> headSet(E before){ SortedSet<E> set = new SearchTreeSet<E>(); headSet(root, before, set); return …

Member Avatar for Syrne
0
376
Member Avatar for bo0ga

How did you learn Java? I just watched the basic and intermediary video tutorials from thenewboston.com and I'm still not 100 percent. I've moved onto the android application development tutorials which deals with a lot of java, and I still don't totally understand it. It started off with a bunch …

Member Avatar for stultuske
0
204
Member Avatar for Syrne

Hello, Quick and easy question: I'd like to learn a little by investigating the source code behind the predefined Java methods/classes/etc. For example, right now I'm learning to work with TreeSet and I'd like to know exactly what's going on behind the class-specific methods such as 'first', 'last', 'pollFirst', 'pollLast', …

Member Avatar for peter_budo
0
736
Member Avatar for jadeplaza

Pls. help me to revised my code , i base my java calculator code on youtube tutorial but it was denied because almost half of our class base their code on the youtube tutorial and i need to pass the code by monday.or if possible , can you give me …

Member Avatar for stultuske
0
212
Member Avatar for nilay84

Hi Everyone, Does anyone know how to add the user input into an array in java. for instance I have a table of 3 columns and 4 rows the 3 column is designed to allow the user to input 1 or 0. so whenever they typed in anything I want …

Member Avatar for Syrne
0
127
Member Avatar for Syrne

Hi there, I am not sure if this is the correct forum for this, but I am currently working with an HPC machine for business use and it is currently running Ubuntu 11.04 (I have yet to update due to software incompatibilities). Anyways, some of the users would prefer to …

Member Avatar for jbennet
0
358
Member Avatar for Syrne

Hi there, so I'm currently studying Java at my University and as of right now we're working on Linked Lists, Array lists, Array Deques, etc. As part of this lesson, we're being told to write our own versions, both recursive and iterative, of the predefined java functions for its corresponding …

Member Avatar for hfx642
0
220
Member Avatar for Syrne

Hi there, I wrote a VERY simply program attempting to use a recursive function to calculate a math problem and spit it out onto a table. It prints once and then I'm getting a stack oveflow error on line 8 and then line 12: [CODE] package recurtable; import java.text.*; public …

Member Avatar for Syrne
0
125
Member Avatar for Syrne

Hello all, I've been fooling around with some code trying to teach myself somewhat about Linked Lists. I wrote this quick program that creates a random number in each node of a list and asks the user to guess the number. I have a quit choice that, when executed alone …

Member Avatar for DavidKroukamp
0
216
Member Avatar for Syrne

Hi there! So I'm working on my next assignment and it's all about implementing a few exceptions in order to get us familiar with the topic. I am tasked with implementing 3 very simple exceptions to my previous program. So far I have 2 out of 3 working fine with …

Member Avatar for JamesCherrill
0
195
Member Avatar for VengefulToast

Hi members, just a simple question, how would I show a constant in an UML diagram? For example, here is a double field the class contains. - radius : double But how would the constant PI (3.14159...) be shown? - PI : constant?? Future thanks for the responses!

Member Avatar for niranga
0
905
Member Avatar for Syrne

Hi again guys. I currently have a class named [B]ElementSet[/B] which houses an array of objects as well as an array of boolean values which pertain to two function tasked with flagging or unflagging an individual object. I also have an abstract class, [B]Element[/B], and two inheriting classes named [B]Subscriber[/B] …

Member Avatar for Syrne
0
210
Member Avatar for Syrne

Hey guys. I am getting a fair amount of errors when trying to create this menu. I am not sure whether or not I am going about it correctly. Without further adieu: [CODE]package assignment.pkg2; import java.util.Scanner; public class Assignment2 { public static final int MAX_NUM = 10; public static void …

Member Avatar for Taywin
0
151
Member Avatar for Syrne

Hi guys, So for my next assignment I am required to, at some point, create a function that searches through an array of objects and sets a boolean value in a corresponding boolean array at the same position as the object in the object array, if that makes any sense. …

Member Avatar for ~s.o.s~
0
148
Member Avatar for rajhans

Hello All, I have stuck in a problem. There are set of strings of different length. I have to remove repeated elements from all the strings except from the string in which it appeared first. For example say the input strings are "3 4 7 2 15 10" "5 7 …

Member Avatar for rajhans
0
198
Member Avatar for nick100555

I have the following CashRegister class where i must implement 3 methods: -getSalesTotal total up sales for the day -getSalesCount total number of sales for the day - rest a reset method that returns all instance variables to 0 Here is my code any help on mistakes i may have …

Member Avatar for Syrne
0
329
Member Avatar for hessian26

Hi, I am new to Java and just learning GUI's. I was wondering if someone could help me with a project? I am trying to create a questionnaire. It will was the user a question and have radio button answers. After the answer is selected, they will hit the "next" …

Member Avatar for mKorbel
0
178
Member Avatar for Syrne

Hi guys (again), I have a new issue. I am trying to bubble sort my array of objects to display in alphabetical order. Here's the code: [B] Subscriber class:[/B] [CODE]package assignmentone; import java.util.Scanner; import java.util.StringTokenizer; import java.util.Random; /** * * @author Bill */ public class Subscriber { //Field declarations private …

Member Avatar for Taywin
0
2K
Member Avatar for Syrne

I'm having some trouble with this section of code: [CODE] for(int i = 0; i < MAX_NUM ;i++) { subList[i].readIn(); System.out.println("\nDo you want to enter another subscriber? " + "(Y/N): "); anyMoreSub = keyboard.nextLine().toUpperCase(); if (anyMoreSub.equals("N")) { break; } } while(!isDone) { menuChoice = JOptionPane.showInputDialog("Please enter the letter for " …

Member Avatar for Syrne
0
148
Member Avatar for Syrne

Hi there, I'm fairly new to java and I have a question about creating an array of objects for a class and allowing data entry for each individual object in the array. I'm a little confused on how to go about doing this correctly. As of right now I have …

Member Avatar for Syrne
0
163
Member Avatar for Syrne

Hi all, just got done building my new PC and after spending several hours trying to get it to actually turn on (realized I mistook a fan connector for that of a floppy drive ><), I now have a problem when it turns on. Here's a video showing/explaining everything (please …

0
58
Member Avatar for Syrne

So I'm fairly new to C++ and I'm wondering if this would be possible and what the code would look like. I'm trying to create an ongoing process that monitors when a certain program does something and launches another program when that thing happens. Example: I have Steam open and …

Member Avatar for Ancient Dragon
0
233
Member Avatar for Syrne

Hello! (Spelled polymorphism wrong in title, I know... it's late!) Now, I understand the concepts of both just fine, but implementing them is where I really run into trouble; this is especially when I'm given a specific problem to solve by using them (i.e. my current assignment). Okay so here's …

Member Avatar for Syrne
0
248
Member Avatar for Syrne

Okay, so my assignment is to overload the following operators and use them in main: +, -, *, /, ==, !=, >, <, <=, >= and these friend functions: >>, << Now, for the assignment our instructor gave us a program with a completed header file, main, .cpp, etc for …

Member Avatar for Syrne
0
182