32,204 Topics

Member Avatar for
Member Avatar for Goldfinch

Hi, I'm having a major problem with an algorithm for Java. I am building a program that recursively parses a simple programming language that follows obvious production grammars. My main issue is nesting. For instance, the pattern might be something like this: Create Jpanel1:{ Create JButton1 Create JPanel2:{ Create JButton2 …

Member Avatar for iamthwee
0
192
Member Avatar for allan f

I am looking for someone who can make a specialized programm for blackjack, to run proofs. there is nothing to do that is available. I am willing to happily pay for the program. please contact me for further information. thank you.

Member Avatar for pritaeas
-1
113
Member Avatar for sammy1231

Create a grade calculator which allows a user to input a mark out of 100% and displays the grade F, P, C, D, or HD. Here are the grade cutoffs: F means Fail and is the mark is from 0 but less than 50 P means Pass and is the …

Member Avatar for JamesCherrill
0
137
Member Avatar for Pyler
Member Avatar for android_gl

**I am using software to create tile map. on map there are different objects ex circle, rectangle, ellipse, polygon etc... I have problem creating ellipse shape. other than that every thing works fine.** ** //loop though map objects and store in 'shape variable'. //so if its circle than store in …

Member Avatar for android_gl
0
645
Member Avatar for XodoX

Hello, Billabong is just a small board game. You have kangaroos that you move clockwise around a lake. It looks like this: http://www.deskovehry.com/fotky/billabong/billabong-06.jpg First you need to draw the board etc. The example looks like this: static private void printField(String[][] field) { System.out.print(" "); String letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; for (int …

Member Avatar for JamesCherrill
0
179
Member Avatar for zach.hardaway.94

I am stuck on writing this code, that requires me to take in a String and integer offset. I want to encode the string by increasing each character by the integer offset in alphabetical order. So if the integer offset given is 1, b becomes c. Furthermore, M becomes N, …

Member Avatar for stultuske
0
62
Member Avatar for V3N0M

Hi guys I have a little bug which needs an extra eye to see I cant seem to see it. Can you help. Thanks in advance //CAI - Computer Assisted Instruction, multiplication program for first graders //Instruction.java import java.util.Random; //Program uses Random class import java.util.Scanner;// Program uses Scanner class public …

Member Avatar for V3N0M
0
202
Member Avatar for MatthewYeend

So I've made a bit of the directory and I want to make a tester that tests the methods that I've declared. The code for the directory is shown below. package TelephoneDirectory; public class TelephoneDirectory { String name; String telnumber; /** * * @param name a person's name * @param …

Member Avatar for JamesCherrill
0
276
Member Avatar for santi.ayasamy

Sir, i need ur help, this is audio stego i can`t play my encrypted audio package techmeet1; import javax.swing.*; import java.io.File; import java.awt.*; import java.awt.event.*; import java.net.*; import java.io.*; import java.util.*; import sun.audio.*; import java.applet.*; import java.math.*; class mainframe extends JFrame implements ActionListener, Runnable { JLabel Lfilename, Lmessage, Ldesign, Ltitle; …

Member Avatar for JamesCherrill
-1
496
Member Avatar for JCSOW

import java.util.*; import java.lang.*; import java.io.*; class EncodeThePhase { public static void main (String[] args) { //set up keyboard input Scanner scan = new Scanner(System.in); //Ask for string from keyboard System.out.println("Please input your phase:"); String input = scan.nextLine(); //Ask for an offset number System.out.println("Please input your offset integer:"); int x …

Member Avatar for Doogledude123
0
216
Member Avatar for Doogledude123

The "Invalid Property" Error is thrown at Line 20, which is for the TextField. No idea as to why it is being thrown. <?xml version="1.0" encoding="UTF-8"?> <?import java.lang.*?> <?import javafx.scene.control.*?> <?import javafx.scene.layout.*?> <?import javafx.scene.text.*?> <VBox prefHeight="400.0" prefWidth="284.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"> <children> <AnchorPane maxHeight="-1.0" maxWidth="-1.0" prefHeight="375.0" prefWidth="285.0" VBox.vgrow="ALWAYS"> <children><Button fx:id="zero" layoutX="14.0" layoutY="321.0" …

Member Avatar for Doogledude123
0
994
Member Avatar for Richa_2

` Hey can u solve my prob. I was running an Applet program(.html file) with java Browser but it showing error = "your security settings have blocked a local application from running" So can u say ... which application is this

Member Avatar for Richa_2
1
227
Member Avatar for brittney_2

I need to print out the titles for family members being stored in an array, but I am having issues with the report. It prints out all the stored names, instead of the ones that belong to each family member and one line for each. I'm new with arrays so, …

Member Avatar for Steve_O
0
243
Member Avatar for Doogledude123

Alright, so I have seen `<<` and `>>` in a few different Java Programs and I have an idea of what they do, but I have no idea what you would use them for. I haven't ran into a problem where I need to use them, so if someone could …

Member Avatar for Doogledude123
0
183
Member Avatar for anand01

Hi all, If we implementing an interface then is that should be inheritance? Kindly any one clarify my doubt

Member Avatar for jwenting
0
178
Member Avatar for user12567

I'm trying to find all the prime factors of an inputted number. I was given the following Java code to convert to assembly. String getFactors(int number) { String answer = ""; for(int factor=2; factor <= number; factor++) { if(number % factor == 0) { answer += factor + "*"; number …

Member Avatar for Schol-R-LEA
0
209
Member Avatar for Ndey yassin

Create a class called PrintStars. In the main method, use nested-for loops to print 2 diagonal lines of stars accross a 9x9 grid.

Member Avatar for JamesCherrill
-3
122
Member Avatar for ADETUNJI_1

I am new to java programming and I just created a simple program that connects to a mysql database to update a Jtable right on my laptop. Now I want to install the program on my friends laptop and we want to share the same database. Do I have to …

Member Avatar for jwenting
0
877
Member Avatar for sasikrishnasamy

Hi, I have got a doubt In String. String objects are Immutable and StringBulider/StringBuffer objects are mutable. Almost we can do all the String functionality in StringBulider. Then why we need to use String instead of String builder/StringBuffer. Is there any specific reason available for using String? kindly clarify my …

Member Avatar for jwenting
0
119
Member Avatar for anand01

hi all, As of my understanding hash set will not allow duplicates. But when I add two different object of same class with same value it is accepting, at the same time same object with different values are not accepting.Kindly clarify me Senario-1 TestBean testBean = new TestBean(); testBean.setId(1); testBean.setId(100); …

Member Avatar for JamesCherrill
0
231
Member Avatar for napninjanx
Member Avatar for metalfurby

Hi there, I am taking a html/java script class and I am completely lost. Can anyone help? Here is what my assignment is: Create an HTML file with Javascript to do the following Have text boxes for the user to enter 2 numbers Have a button so that when clicked …

Member Avatar for JorgeM
-1
137
Member Avatar for alonso.jasl

Hello everyone, I'm not sure whether this post belongs here. The thing is that I want to do a Page reload from my java code running on the server. After pressing a button, I wish for the page to do an automatic reload. So, inside the class file, I have …

0
111
Member Avatar for gxs100

Hi there, Im currently designing a Dots and Boxes Game and ive run into a snag,where my Minimax Algorithm will go 4-1 against the AI but not make the next move to win.Any help with this would be great package players; import interfaces.GameState; import java.util.List; import data.Line; public class MiniMax …

Member Avatar for iamthwee
0
2K
Member Avatar for LegendX

I need help with this problem, if someone can help me with this it would be appreciated. Part 1: Write a program that uses a while loop to loop 5 times. Each time it should prompt the user to input an integer and should add it onto a sum. After …

Member Avatar for JamesCherrill
0
142
Member Avatar for romdan94

I know I asked this before, so I appologize but I just need to write this program for an extra credit assignment and frankly I don't know a thing about arrays and don't have time to learn since I have another final coming up so if anyone could be so …

Member Avatar for JamesCherrill
0
253
Member Avatar for brittney_2

I need to create a 2D array that holds the number of family members by the highest numbe of titles of one of the family members, and they input on one line. However, I am having trouble when I call the class in my other code in the main method. …

Member Avatar for brittney_2
0
314
Member Avatar for nhiap6
Member Avatar for maurice.tracey.7

hi thier i was wondering if you guys could hep me when i press equall it calculates but when i press equall again it adds the first number added, for example if i was to enter 3 + 2 = 5 if i press enter again it equalls to 8 …

0
176

The End.