- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 13
- Posts with Upvotes
- 13
- Upvoting Members
- 2
- Downvotes Received
- 4
- Posts with Downvotes
- 3
- Downvoting Members
- 4
19 Posted Topics
I have this assignment where I have to make an xml that has movies names and info. Then i have to make a StAX program that locates the xml file and reads it. The program should also be able to count the number of movies in the decade. Thats the … | |
I don't know how to use Notify and wait in my program but I am required to. The point of my program is that there are two threads, one which assigns the inputted object to the numbers 1-10 and another that reads them. Could anyone help. [CODE] package vairables; public … | |
I am making a program in which the program assigns a variable to the numbers 1 - 10. I am suppose to use wait and notify. I put them in but I don't know how to assign the variables to the numbers. My code is and could someone tell me … | |
I am supposed to make a charstack program that has to run an error. This is the Question: [COLOR="Red"]Add explicit error reporting for stack underflow via a checked exception (i.e., one that must be declared and caught). Provide a main program that tests this new capability.[/COLOR] I don't what the … | |
I want to find the average score of a LinkedList. My code is [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package bowlinggame; import java.util.LinkedList; import java.util.TreeSet; public class BowlingGame { public static void main(String[] args) { TreeSet <String>PlayerNames … | |
I made a program and want to enter previous dates into a linkedList. My code is [CODE]package bowlinggame; import java.util.Date; import java.util.LinkedList; import java.util.TreeSet; public class BowlingGame { public static void main(String[] args) { TreeSet <String>PlayerNames = new TreeSet<String>(); PlayerNames.add("Steve"); PlayerNames.add("James"); PlayerNames.add("Bob"); for (Object o : PlayerNames) { System.out.println(o); } … | |
I am making a program of a bowling tracker. I made four names and then I have to add specific dates they played and then the score they got on those days. Then print to screen the names, the number of games they played, average score, last games score and … | |
I am making a program of vehicles and i have to make a car garage class. In the class the max amount of vehicles that could enter are 20 or 25000 lbs. I wrote the charstack and the pop() and the push() but dont know how to limit it to … | |
I am new to programming and I don't know how to make interfaces. My code is : [CODE]public class CarsDescription { /** * @param args the command line arguments */ public static void main(String[] args) { interface Domestic {} interface Import {} interface Japanese extends Import {} interface German extends … | |
I just wanted to know what would happen if you abuse the CharStack class by pop()ing more characters than you push()? Would it be an error of out of exception or something else. | |
I'm writing a program but I don't understand the question that well could someone help explain what I have to do. Also, I am having difficulty making the methods could someone help, because I am getting an error every time. This is the Question. Write a cash register class. It … | |
I making a small office word like program. I have four things. A menu bar containing File>Open,Save,Exit. I want to create a short cut for open, save. Could someone help me how to do that. this is my code [CODE]namespace Texteditor { public partial class Form1 : Form { public … | |
I am making a project using windows form application. i made two other window forms (vehicle.cs and Input.cs). i want to obtain the value from the textbox in input.cs and use it in vehiicles.cs. is There any way to do this. I am trying to make a for loop but … | |
Re: You could do. [CODE]Random randomNumGenerator = new Random();[/CODE] to make it occur a lot of times [CODE]for (int i = 0; i <=15; i++) random = randomNumGenerator.Next(1,7) numOccurrance[random]++//stores it in an array[/CODE] | |
Re: Well you could create something like this: [CODE]string [] stringArray = new string; stringArray[] = textBox1, textBox2, ... , textBox5[/CODE] then you could create another one with a different name. the for loop you could do: [CODE]string anyname = "" for (int i = 0; i <whatever; i ++) // … | |
Re: This is my code now but i can't get the percentages of the numbers. [CODE]namespace Dice_Roll_assignment { public partial class diceRoll : Form { public diceRoll() { InitializeComponent(); } private void rollDice_Click(object sender, EventArgs e) { AcceptButton = rollDice; if (txtNumRolls.Text.Trim() == "") { MessageBox.Show("Must enter number of dice rolls"); … | |
I am making a program where i have to write a recursive function that reverses a string. I am a new programmer and need help. The function should return a String and take only one argument, also a String. [CODE]import java.io.*; public class RecursiveFunction { public static void main(String [] … | |
I was writing a program that involves the console inputting integers and strings. For my project i prompt the user to enter the number of strings he would like. Then i prompt the user to enter the strings so i could order them alphabetically. I am supposed to use any … | |
I am trying to make a program in which the user is prompted to input a number(max length of 4 digits), and then the program shall produce the number of outcomes of a two dice roll meaning that 1 roll includes two die. The outcomes could be 2-12 and I … |
The End.