31,001 Topics

Member Avatar for
Member Avatar for sami11

I already wrote code in ILOG CPLEX (CP) environment and now I want to write it in JAVA, Eclipse. Can you help me

Member Avatar for sami11
0
182
Member Avatar for stillHaveHope

Use a two-dimensional array to solve the following problem. A company has four salespeople (1 to 4) who sell five different products (1 to 5). Once a day, each salesperson passes in a slip for each different type of product sold. Each slip contains the following: a) The salesperson number …

Member Avatar for radhakrishnan.akshai.3
0
9K
Member Avatar for CoilFyzx

Hi. I have a JFrame with a JLayeredPane. On the first layer there is a table, then above it there is black transparent layer that allows me options and what-not. I animate the arrival of this transparent layer. However when I do this the panel seems to loose it's transparency, …

Member Avatar for CoilFyzx
0
558
Member Avatar for Fatima_110

I'm just starting my 2nd semester in Java. The project for the semester is: I have to create a EDUCATIONAL GAME or any SYSTEM using java. I am clueless what to decide to make. Please I need help ... I dont have enough Java knowledge and need the idea of …

Member Avatar for Fatima_110
0
212
Member Avatar for ZaneDarklace

I am working on a project where you must first encrypt a sentence then decrypt it. the code that is used is: `import java.io.*;` `import java.util.*;` `public class Decryption `{` `public static void main(String args[]) `{` `Scanner kbReader = new Scanner(System.in); `System.out.print("Enter a sentence that is to be encrypted: "); …

Member Avatar for ZaneDarklace
0
901
Member Avatar for Doogledude123

`final PerspectiveCamera camera = new PerspectiveCamera(true);` The constructor PerspectiveCamera(boolean) is undefined. http://download.java.net/jdk8/jfxdocs/javafx/scene/PerspectiveCamera.html Clearly says that it can accept a boolean for "verticalFieldOfView" Why is Java giving me this error?

Member Avatar for Doogledude123
0
347
Member Avatar for hitro456

Hi Folks, I am new to java programming. I have an xml file <File> <XMLFile> <Type = "TypesFirst"> <myI>17</myInt> <myS>Type one</myS> <myD>3.14</myD> <myL>1212121</myL> <myC>D</myC> </Type> </XMLFile> <XMLFile> <Type = "TypesSecond"> <myI>17</myInt> <myS>Type two</myS> <myF>7.14</myF> <myL>121456</myL> <myC>D</myC> </Type> </XMLFile> </File> So I have to deserialize this file in such a way …

Member Avatar for anand01
0
184
Member Avatar for bjnzzzle

I suppose to write a Java program using array and method follows: It reads a sequence of strings, each on a separate line, and stores them in an array, let call it input1, with one string per cell, in the order they were read. The sequence ends with an empty …

Member Avatar for JamesCherrill
0
345
Member Avatar for Pyler

I'm trying to implement a hangman game using linked lists but not getting anywhere. I want guessed characters to be inserted in a Linked list of chars at a position that corresponds to the character's position in the word they are trying to guess.(See example at bottom.) For some reason …

Member Avatar for JamesCherrill
0
2K
Member Avatar for V3N0M

Hi everyone I am coming from a C background and I am finding it hard to understand wrapper classes and unwrapping them and their use. Can anyone tell me how they work in english that is easy to understand. And what is an object is it a variable, a data …

Member Avatar for JamesCherrill
0
147
Member Avatar for BeganMemory

At this point I know how to utilize Google Maps within Android but it always seems to take up the full window, there is an image below which shows what I'm attempting to accomplish (having a box below the Google maps where I can store text i.e. "Hello World" **How …

Member Avatar for peter_budo
0
455
Member Avatar for CoilFyzx

Howdy-ho. I am trying to right click on my table and change the cell border color and highlight color of that cell. I have figure out how to give that particular cell focus when I right click it by using int row = fixed.rowAtPoint(evt.getPoint()); int col = fixed.columnAtPoint(evt.getPoint()); fixed.changeSelection(row, col, …

Member Avatar for mKorbel
0
670
Member Avatar for abhishek.anand.37017794

class Simple { void display() { System.out.println("ant hnkg"); } class Local { void msg() { System.out.println("inner"); } } public static void main(String args[]) { Local l = new Local(); l.display(); } }

Member Avatar for balaji.ghadage
0
1K
Member Avatar for CoilFyzx

Hello good day. I have an idea for my program. I have a Table in my display. I want to add a Component to - let's say - the right of my screen. When I click this component it should display to me buttons and other components that I have …

Member Avatar for JamesCherrill
0
529
Member Avatar for Doogledude123

Alright, so I am thinking about an idea of a useless application, however it is interesting me. A 3D "perspective" of color. I know, confusing. But think of it this way: Movement given an x, y, z coordinate. Color given r, b, g = x, y, z I was also …

Member Avatar for Doogledude123
0
287
Member Avatar for kim2_0016
Member Avatar for fliponymous
0
542
Member Avatar for GUIPaPa

Guys why is my image not loading on my JFrame?? BTW I am using eclipse on my mac. Code for Board : package ourgame; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Board extends JPanel implements ActionListener { Dude p; public Image img; Timer time; public Board() { p = …

Member Avatar for GUIPaPa
1
488
Member Avatar for havoc0921

I have an assignment for my cps class in which we have to create a program that will import a file from a server that has a bunch of numbers in it. The program is suppose to take those numbers, sort them, give the minimum and maximum value, average, median, …

Member Avatar for JamesCherrill
0
219
Member Avatar for jalpesh_007

dear all, I just want to know how can i open any jsp page of my project from swing button of jframe. Do i have to use URL class and its methods or i can directly pass localhost address and run it. please reply. Thank you.

Member Avatar for masijade
0
160
Member Avatar for OldDeveloper01

Hello, im trying to make a mulitple choice quiz in for android. Im a newbie at this and i am having some difficulites with the logic. As you can see what i have done below is create two arrays, questions and answers. The first option within each of arrays of …

Member Avatar for muralidhara_1
0
3K
Member Avatar for Compton11

I had a technical interview last week for a Java Software Engineer position. They asked some pretty basic questions such as: 1) What's the difference between an abstract class and an interface? Which do you use more? 2) How does garbage collection work in Java? 3) What is the difference …

Member Avatar for jwenting
0
315
Member Avatar for jalpesh_007

Dear all, I am making MS Access database connection with my java program. As i know that in Connection Following things are required: Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:DSNname","Username","password"); Now i have created System DSN in Odbc data connection and also i have attached database with that DSN. While creating DSN, …

Member Avatar for jalpesh_007
0
416
Member Avatar for pekemp23

Assignment is as follows: **Create a GUI-based program to accept name of donor, name of charity, and amount of pledge from the user. Display a list of entries in a JTextArea or JTable. Submit the .java source file or files for this program. Do not use any package statements in …

0
105
Member Avatar for LooN_iE

[code=Java] package newuser; import java.io.BufferedReader; import java.io.FileReader; public class Main implements ServerConstants { public static void main(String[] args) { BufferedReader lnr = null; String line = null; int N=1000; int totalRecords = 0; String [][] array = new String[N][]; try { lnr = new BufferedReader (new FileReader("LoginData.txt")); for (line = …

Member Avatar for ncmathsadist
0
288
Member Avatar for angel06

Hello guys would someone please help me fix my program. I have two classes the one is named GetValues and the other one is SampleReturn. The GetValues class has an error illegal start of expression in the line `public static String kuhaName()` . The code is below. GetValues class codes: …

Member Avatar for ncmathsadist
0
576
Member Avatar for trubble

I was tasked to make a program that took a string input, then reversed it using recursion. I'm getting a syntax error causing an exit code 1. Also, I'm sure there may be an error in the code as I'm not very strong with recursion. Any help with this (specifically …

Member Avatar for JamesCherrill
0
179
Member Avatar for eldiablo1121

Hello, I have to write a program that will solve polynomials by user input, my program compiles, but gets an exception error. Here is my code: import java.io.*; import java.util.Scanner; import java.util.LinkedList; public class PolynomialList { private Node first = new Node(0, 0); private Node last = first; private static …

Member Avatar for JamesCherrill
0
1K
Member Avatar for seethu214

An n x n matrix is a positive Markov matrix if all of its elements are positive and the values in each column sum to one. Write a program to check whether a 3 x 3 matrix is positive Markov. Your program should prompt the user to enter a 3 …

Member Avatar for JamesCherrill
0
177
Member Avatar for shaiqi

Hello! friends i am a beginner to java can someone tell me about the basics and its coding ,please.

Member Avatar for JamesCherrill
0
53
Member Avatar for SpottyBlue

I have a problem with creating UML diagrams. This is the first time. Here is the question below: ![95deb5f1a4dee1451aa7528c291781f8](/attachments/large/4/95deb5f1a4dee1451aa7528c291781f8.jpg "95deb5f1a4dee1451aa7528c291781f8") And here is my answer: ![22e4ba8767e9a4c011bd3c4e799e9c31](/attachments/large/4/22e4ba8767e9a4c011bd3c4e799e9c31.png "22e4ba8767e9a4c011bd3c4e799e9c31") Please check if there is anything wrong.

Member Avatar for rubberman
0
404

The End.