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
~18.3K People Reached
Favorite Tags

37 Posted Topics

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
190
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
253
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
253
Member Avatar for Cenchrus

I don't know much about Android development, but I know it's very similar to a 'normal' Java programming environment. For this specific piece of code: AFAIK, super.onCreate(savedInstanceState); is what returns information to the application in the event that an activity is interrupted (restart, detroyed, etc), if that makes sense. In …

Member Avatar for Syrne
0
224
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
162
Member Avatar for syed30

Further your knowledge, research this term: **data structure** Learn the principles and apply them; this is very basic programming knowledge. Make sure you don't get lost in the more advanced topics, though. Stick with the simpler techniques for now.

Member Avatar for Ezzaral
1
507
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
384
Member Avatar for bo0ga

I started with C++ and did relatively well, but I still didn't understand most of the concepts. I then switched schools and learned Java, it was much easier to pick up, but the more advanced stuff is tough for me. I learned through books, Internet research, and school. I have …

Member Avatar for stultuske
0
205
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
754
Member Avatar for jadeplaza

Your instructor 'denied' your work because it was plagiarized. It's not hard to tell when a student submits something above their ability. Study the programming language and write your own code. Then, if you have problems, ask them here and we'd be happy to help.

Member Avatar for stultuske
0
215
Member Avatar for nilay84

[QUOTE=nilay84;1772096]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
129
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
365
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
224
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
127
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
218
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
198
Member Avatar for VengefulToast

EDIT: Sorry, above poster is correct. I changed my post to avoid confusion. [CODE]+PI: double = 3.141...[/CODE]

Member Avatar for niranga
0
1K
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
229
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
153
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
151
Member Avatar for rajhans

[QUOTE=rajhans;1668304]I have the code but it will be very difficult to understand by other person as it is a intermediate part of a big code. That is why I have just put the problem part with a toy question and expected answer.[/QUOTE] That's not the only thing that's very difficult …

Member Avatar for rajhans
0
208
Member Avatar for nick100555

Read up on accessor and mutator functions. [CODE]public double getSalesTotal(double salesTotal) { salesTotal = purchaseTotal; return salesTotal; }[/CODE] This should be two separate functions, it will help avoid confusion. One function should 'set' the fields and another should 'get' a value.

Member Avatar for Syrne
0
331
Member Avatar for hessian26

[QUOTE=hessian26;1657939]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
182
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
152
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
167
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
329
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
250
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
184
Member Avatar for Syrne

Hello there! So I have an assignment where I am given a text file with customer information that I need to convert into a "label" format. The original file has caret (^) symbols marking the different lines to be organized. I have the input totally finished, the only thing I'm …

Member Avatar for Syrne
0
156
Member Avatar for Syrne

Okay so I have a program that takes in up to 25 students and information for each including 5 test scores. All of that is done and working fine. What I am trying to do now is calculate the averages of each test 1-5 and then the total average of …

Member Avatar for StuXYZ
0
274
Member Avatar for Syrne

Hello! So for my assignment I had to declare an array of 25 student objects and input data into them including another array of 5 test scores. All that is done and works flawlessly(At least that's what I think), but the last portion of the assignment is for me to …

Member Avatar for Syrne
0
1K
Member Avatar for Syrne

Hello! Well, I've been given a fairly difficult assignment (at least to me), and I can't seem to wrap my head around some parts. Here are the objectives: [I]"In this assignment you will demonstrate your ability to design a class and provide its declaration (.h) and implementation (.cpp) files. All …

Member Avatar for Syrne
0
183
Member Avatar for Syrne

So, my assignment is to take in a student ID, first and last name, and 5 test scores. I am then to average the test scores, collect all of that data into an array and output all of the information in a tabular format(which I have yet to do). I …

Member Avatar for SgtMe
1
381
Member Avatar for Syrne

So I'm looking to create a function that prompts the user to enter 'Y' for "Yes restart the program" and 'N' for No, do not restart. I know this should use the boolean operator, I'm just unsure as to how to implement it. I also know to encase the body …

Member Avatar for Syrne
0
7K
Member Avatar for Syrne

So for my first assignment of the semester I need to write a program that: 1.) Asks the user to input a string 2.) Asks them to replace part of the string 3.) Have the program prompt "Yes" or "No" on whether the user wants the program to restart, if …

Member Avatar for Syrne
0
95

The End.