I am on the latest version of Windows 10, running with SWI-Prolog 7.6.4, and trying to get JPL (Java <->Prolog) running for a school project. I've not had to deal with path issues much but I have done my best to understand the problem. I've added the necessary import statements to my java class file, and the necessary environment variables to my system as per the page here: https://jpl7.org/DeploymentWindows However it *still* does not show up as a valid java package. I've just realized as I write this that maybe I need to reboot. I will try that after posting …

Member Avatar
Member Avatar
+1 forum 3

I do the class but there are some codes I need to help me please : -Write a number of member functions that do the following: •Calculate the student GPA •Search for the highest mark taken in a particular course •Print the ID, first name, and last name of all the students who have already taken a particular course •Print the course code, course title, course mark, course grade of all courses taken by a particular student -Write a main program that does the following: •Define an array of objects of each one of the above three classes •Assign data …

Member Avatar
Member Avatar
+0 forum 2

I need to create a class that represents one crayon of a particular color and height(length). Then, I need to design an applet that lets me draw a box of different colored crayons. This is what I have so far: **CLASS:** import java.awt.*; public class Crayon { private final int BOTTOM = 150; private final int WIDTH = 25; private Color color; private int length, location; //---------------------------------------------------------------------------------------------- // Crayon's characteristics. //---------------------------------------------------------------------------------------------- public Crayon (Color color, int length, int position) { color = color; length = length; location = position; } //---------------------------------------------------------------------------------------------- // Draws crayon. //---------------------------------------------------------------------------------------------- public void draw (Graphics page) …

Member Avatar
Member Avatar
+0 forum 5

java language (ArrayList) The Registrar Office at the university has asked you to help them write a Student Information System (SIS). The system can be used to store information about students, courses, and students' transcripts (courses already taken by a student). · Define a class called StudentType that holds information about a student (student ID, first name, last name, major). · Implement each member function (set, get, print, constructor, etc) in the class. · Define a class called CourseType that holds information about a course (course code, course title, number of credits). · Implement each member function (set, get, print, …

Member Avatar
Member Avatar
+0 forum 3

Is there any method in java to generate random number (integer, byte or float) ? Please tell me if any i need it in my program. If possible please give full example. Thanks!

Member Avatar
Member Avatar
+0 forum 1

I am using Netbean IDE 8.1 to build the website. I build a very simple website with simple Javascript function, window.alert(). Upon my testing, I put the button triggered function in the javascript but the function is not triggering. If I put the function under the HTML, it does triggered the function. Any idea? Please note that I also have linked my HTML file to the Javascript file.

Member Avatar
Member Avatar
+1 forum 3

my project is sort score of Student using Linked List and sort algorithm can i coding loop for input from user and save value to node in linked list and export or sort value like this ? Thanks for help or discuss or give any idea (any code is idea from this blog) warning before post prob from this web (Curly braces { } may only be used when posting code.) package javaapplication19; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import static javaapplication19.LinkedList.addNode; import static javaapplication19.LinkedList.printLinkedList; public class JavaApplication19 public static void main(String [] args) throws IOException { BufferedReader input = …

Member Avatar
+0 forum 0

Hi I would like to ask you the way i can call a static method when i need to know for exemple what price is bigger. I have 3 prices. How to set it? Help me please

Member Avatar
Member Avatar
+0 forum 1

Hi, I'm using NetBeans with Java. I have create a JFrame with some checkboxes and a button to open browser go to the specific URL based on the checkboxes' values. But how do I auto-login/auto fill the username and password textbox then trigger the login button? Please kindly advise. Thanks.

Member Avatar
Member Avatar
+0 forum 7

Hello everyone. I have been trying to get desired output since last 4 days and so far very near to it. I am really stucked in the logic. Please help me or help me in writing proper logic. Open the attached zip file for whole eclipse project. No need to touch any file except **com.designimplementation.elevator.controllers.ElevatorController** So far I am able to get **Average cycles per customer trip: 42.35841100754549** But I must be **Average cycles per customer trip: 30** Please help me asap. Thank in advance.

Member Avatar
Member Avatar
-4 forum 1

Write a program to read 50 students’ marks, calculate and print the number of students who succeed and the number of students who failed (any marks below 40 should be considered failed).

Member Avatar
Member Avatar
+0 forum 4

The entire point of this dice game is for a user to first roll four dice, if the answer to this roll is a 9,11,18 or 24 the user wins. If they roll a 6, 12, 13, 17, 19 or 23 the user loses. But if the user rolls any other number, that number becomes the goal number and they must roll it again to win, otherwise they roll a 13 and lose. I have most of this code established and functioning - the goal number is a little sketchy but more importatnly there is one more part of the …

Member Avatar
Member Avatar
+1 forum 1

Hi I need to show an image thumbnail in one of jTable cells But I don't know how to do it! I'm using netbeans to design GUI . How can I do that? Thanks

Member Avatar
Member Avatar
+0 forum 11

The facts: We are talking about a small company (5 persons) with many clients that making real money (we don't) . We provide our own software that has unique features against the e-commerce completion. The problem: the first glimpse of the problem arose around 2012 and made clear around 2014 with web sockets. Some clients didn't want a simple chat with their client but instead a full live eShop where they could negotiate the prices of a product or even start a discussion with a visitor. The solution would be implementing web sockets in to our framework and that worked …

Member Avatar
Member Avatar
+1 forum 6

I want to make a program wher the user enters his password in a java program and as he is typing it, the letters turn to stars so as to hide his password (since I'm trying to design a multiplayer game). Is it even possible using java?

Member Avatar
Member Avatar
+0 forum 2

hi everyone I am currently in the process of designing a bank atm machine appliction and I would like to apply a backgrond color to some of the button, I tried some codes but it dont seem to be working, well what I meant was I dont know if the codes I used is the correct form for a background color of a jbutton. I am probably missing codes, can you all tell me if what I have here is the correct thing and could point me in the correct direction here is the codes that I used. do I …

Member Avatar
Member Avatar
+0 forum 1

How to save image from computer client to server using java?? Give me the source code..

Member Avatar
Member Avatar
-2 forum 2

Hi, I have been searching for freelance software developer on different websites for a while but failed to find him for the software I need. Been studying and researching a lot how could i come as close as possible to the solution i am looking for: what needs to be done is changes tracking (monitoring) of graphical widgets (Embed code) that contains speedometers. Similar to the one(s) behind the steering wheel in a car. Each speedometer contains different circular areas and what I want is to track (and get screen pop up alerts) when it graphically travels from one to …

Member Avatar
Member Avatar
+0 forum 12

Hi, I've been doing research on a career in coding/programming and now I'm very interested and motivated to learn it. I'm a complete beginner and limited financially at present. So I'm confused as to how to go about it. I love reading a lot and sitting on my laptop, so no problem with studying. I'm the type of person that likes to learn an important big wide subject in stages. To first get a decent background and understanding of it. Then to go deeper into it. Is the following way a good way to go about it? Go through books …

Member Avatar
Member Avatar
+2 forum 4

I want to create a php function that i can use to get a particular user details and display the info gotten in my ProfileActivity when a user profile is been clicked in my app. so i wrote this php code to get user details from my database but when i run the code nothing is returned in my browser. please what could be causing this? <?php require("config.php"); function getdetails($id) { $array = array(); $q = mysql_query("SELECT * FROM 'users' WHERE 'id'=".$id); while($r = mysql_fetch_assoc($q)) { $array['id'] = $r['id']; $array['name'] = $r['name']; } return $array; } function getId($name) { $q …

Member Avatar
Member Avatar
+0 forum 2

Howdy All - I am just wondering if anyone has successfully converted a *massive* (subjectivity implied) COBOL application to another language. If so, into which language was your system converted and when was this done? What were the potholes you, no doubt, hit? Was the conversion far more expensive than anticipated? What hidden costs were exposed? Was there a performance gain/loss in the new language? Did anyone convert from COBOL to PL/SQL? to T-SQL? to Java? to C#.NET? Thanks, and have a great day!

Member Avatar
Member Avatar
+0 forum 10

I have a program that is meant to display the total, average, student name and letter grade for a student. I'm almost done writing it but I have no idea how to make it loop so it goes back to step 1 from step 4. Everything I've read on using "while" loops hasn't really been helpful to me with this particular application. import java.util.Scanner; public class Averages5 { public static void main(String[] args) { // variable declaration String name; int mark1, mark2, mark3 ; int grade = 0; int A, B, C, F; double average; // input Scanner input = …

Member Avatar
Member Avatar
+0 forum 2

Halli Hallo i hope im at the right Place. I want to get started with API-Gateway(s). Currently im running 5 Microservices written in Java (Spring-Boot) deployed via Docker. Each Microservices is protected via Keycloak. I want to use a API-Gateway so that i can combine every MS into 1 Link: * demo.com/api/ms1 * demo.com/api/ms2 * ... And more important i want to have the Authorization at one Place and not in everysingle Microservice. I found a couple of Solutions but im not sure which to use or if i maybe should write my own one? I was intrested in checking …

Member Avatar
Member Avatar
+1 forum 1

The API docs are now found at [ Java Development Kit Version 11 API Specification](https://docs.oracle.com/en/java/javase/11/docs/api/)

Member Avatar
Member Avatar
+0 forum 3

Create a class called Circle contains: Two instance variables (attributes): radius (typed double) and color (typed String). Provide a set and a get method for each instance variable. getArea(), which return the area of this instance, respectively. Create another class called Circle Test to : Create two different objects “Circle”, Call methods

Member Avatar
Member Avatar
+0 forum 1

Hello, I have a questions in TCP client to server communication: This is what is require me to do: First of all, if we run the program from multible command line or multible PC it will run the same program. ( of cource ) Second, the program should read from the .txt file and assigned each node to what node conected. ( done that ) Thired, the program should have the server and the client in the same class we could call it a Node.java for example. Fourth, when the Node.java want to send a message to other Node it …

Member Avatar
Member Avatar
+0 forum 1

hi people I am building a atm machine but havent actually coding it as yet, just the gui interface part i have done so far because i am doing something else at the moment but in between i would do someting with it. so i have put in an if and else statement. the atm should be work like this, when a person deposit any amount a pop box will tell u the money is deposit. it should also show u your current balance, bal enquiry, be able to get fast cash and able to widthdrawal right. I have started …

Member Avatar
Member Avatar
+0 forum 4

i am creating an app with android studio and i'm using mySQL.and i want to implement friends feature in my app to enable users send and recieve friend requests, i have created tables and writen the server side php code for that, i have also created an add as friend button that should do that in my app but i'm still unable to write the appropriate code for that in android.your help with this will be highly appreciated.

Member Avatar
Member Avatar
-2 forum 3

public class Gradesv2 { public static void main(String[ ] args) { //local variables int numTests = 0; //counts number of tests int testgGrades = 0; //individual test grade int totalPoints = 0; //total points for all test double average = 0.0; //average grade int test1 = 95; int test2 = 73; int test3 = 91; int test4 = 82; System.out.println(""); System.out.println("Test # 1 Test Grade: " + test1 + " Total Points: " + test1 + " = " + totalPoints + "Average Score: " + test1 = +); }//end of main method }//end of class

Member Avatar
Member Avatar
+0 forum 6

Hello to all! I have added a jcombobox in a jpanel by dragging it from palette (Netbeans IDE). I am populating jcombobox with database without any problem. For example i have following 5 items in my jcombobox: Italy, Uganda, America, Canada, Austria When my jtable is focused and i type any key from key board e.g 'A', then the jcombobox filters perfectly and shows me the items: America, Austria. This is perfect working of jcombobox filtering i-e it filters the items on the base of first characters or alphabets from the left. But I need some advance filtering for example: …

Member Avatar
Member Avatar
+0 forum 6

The End.