32,204 Topics

Member Avatar for
Member Avatar for Andrew_70

/** * @param args the command line arguments */ public double averagegrades(double total, double average) { average = total/5; return average; } public static void main(String[] args) { Scanner input = new Scanner(System.in); double[] grades = new double[5]; double total = 0; double average = 0; for(int i=0; i<5; i++){ …

Member Avatar for rproffitt
0
37
Member Avatar for Craig_11

The Action Driver Class when it runs it just brings up a small box with java logo and close and minimize options thats all...... I have reviewd the code over and over and my instuctor said to just review my work... I am so lost....

Member Avatar for JamesCherrill
0
127
Member Avatar for rex_2

I'm trying to convert a Java code into Python. I could adapt most of the code, however, it is difficult to me to link all the functions. The java code is used in Weka. I would like a stand-alone python code. The algorithm in the code is presented in this …

Member Avatar for Reverend Jim
0
245
Member Avatar for dearbhla_mcd

I have a form with dropdowns. Based on that form input you should be able to view the details of multiple employee's in another JSP. I cannot get this to work and when testing, the arraylist employeesList size returns zero. My code is below - can anyone see where I …

Member Avatar for HKold
0
297
Member Avatar for ronaktiwari6979

<LEGEND ><b><%=pagetitl%>:-</b></LEGEND> <div id="container"> <div id="dynamic"> <table cellpadding="0" cellspacing="0" border="1" class="display" id="example" style="width:98%;" > <thead > <tr style="background-color:#E6E6FA;border-color:#a7c9de;"> <th style="border-color:#a7c9de;" >File ID</th> <th style="border-color:#a7c9de;" >Title</th> <th style="border-color:#a7c9de;" >Name</th> <th style="border-color:#a7c9de;" >Last Refresh Date/Time</th> <th style="border-color:#a7c9de;" >Refresh Now</th> </tr> </thead> <tbody> </tbody> </table>

0
30
Member Avatar for Andrew_70

New to Java and would appreciate the help with the assignment: Write a program to collect exam grades from keyboard until an invalid grade (grade less than 0 or bigger than 100) inputted. Find how many grades were entered, the corresponding average grade, how many grades above 90, and how …

Member Avatar for Tori_1
0
110
Member Avatar for Tombezlar
Member Avatar for Reverend Jim
0
125
Member Avatar for John_285

i need help on : we sum the balances of all of the Accounts ?? print the total sum. print the owners of all the Accounts that have balances < 100 ? Danny is generous – and wants to deposit 72 into all accounts with balances < 100 How many …

Member Avatar for JamesCherrill
0
184
Member Avatar for sonalid1701

Hey folks, Need your help:) Wanted to understand the concept of method overloading and overriding in Java, as explained in Q.7 [here](https://www.interviewbit.com/java-interview-questions/). How do we identify a problem, to which we can apply the above concept?

Member Avatar for JamesCherrill
0
70
Member Avatar for Dave Ryan

this is the task given to me guix i hope you can help me Create a program that will read the data from a file and save the output in another file 1.Create an input file named **CS122Grades**. 2.The contents of the input file should be the **names**,**midterm grades** and …

Member Avatar for rproffitt
-1
338
Member Avatar for s_26

public class Hello { public static void main (String[] args) { System.out.println("My contact number is: "); int srv = 82; system.out.println(srv);

Member Avatar for tinstaafl
0
158
Member Avatar for Sridhar_7

Hello, I have a program below where I am selecting a file and displaying the content using a JTextArea. It works fine, but when I add a JScroller, it does not display the area with the scroller. What am I doing wrong? import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; …

Member Avatar for Sridhar_7
0
94
Member Avatar for dixit ankit

Hi everybody!! I want to make a vehivle license plate recognition system in java but dont have any idea how to implement it in java.If anyone could give me link to how use java for image processing,it would be of great help Waiting for reply

Member Avatar for daanjanssennn
0
228
Member Avatar for ANAFO

hi guys, am new here i want to learn how to code java am a starter and i will like to learn it as fast as posible

Member Avatar for rproffitt
0
33
Member Avatar for noor_19
Member Avatar for rproffitt
0
29
Member Avatar for Moniza_1

Ahun ni mi Eni ba temi je I need a script that constantly scans a token on etherscan and notifies me when a large order goes through. I should be able to set the following parameters 1. the token eg Celsius, DAI 2. large order size eg 50,000 I can …

Member Avatar for rproffitt
0
41
Member Avatar for Royvip

I need a software that can automatically log into a series of accounts to a website, available data acount list, we need software to automatically log in continuously to check whether the account is alive or dead and check. check nickname in the game, and amount in the account

Member Avatar for Dai_6
0
154
Member Avatar for Jeon_2

Write a program that prompts the user to input (word/statement), Accepts only letters. The program then: 1.Remove all the vowels from the (word /statement) then output the (word /statement) without vowels. 2. Outputs the number of vowels. 3. Convert the lowercase vowels letters to uppercase and vice versa. Conditions: 1. …

Member Avatar for knight84
0
148
Member Avatar for d088814

a. Create an application to calculate the GPA of a student. b. GPA calculation must also take into account courses / subjects with UM status (Repeat Subjects). c. The number of subjects / courses entered by students / system users is not fixed. d. Students only need to enter the …

Member Avatar for tinstaafl
0
66
Member Avatar for SimonIoa

Hello i want to publish my Ionic Cordova in Android. I keep getting an error ANDROID_SDK_ROOT=/Users/[myName]/Library/Android/sdk (recommended setting) ANDROID_HOME=/Users/[myName]/Library/Android/sdk (DEPRECATED) Could not find an installed version of Gradle either in Android Studio, or on your system to install the gradle wrapper. Please include gradle in your path, or install Android …

Member Avatar for rproffitt
0
35
Member Avatar for Yuri Domingos

Help me to generate a complete image after finishing my free drawing in paint Here is the code /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ …

Member Avatar for rproffitt
0
82
Member Avatar for obedz

Rick is really fond of fruit juices, but he is bored of their traditional flavours. Therefore, he has decided to mix as many of them as possible to obtain something entirely new as a result. He has N glasses, numbered from 0 to N-1, each containing a different kind of …

Member Avatar for Chrisphine
0
3K
Member Avatar for 28-Ivan

class Test { char Paper[20]; int Marks public: Test() //Function 1 { strcpy(Paper,”Computer”); Marks=0; } //Function 2 Test(char P[]) { strcpy(Paper,P); Marks=0; } //Function 3 Test(int M) { strcpy(Paper,”Computer”); Marks=M; } Test(char P[],int M) //Function 4 { strcpy(Paper,P); Marks=M; } };

Member Avatar for rproffitt
-1
39
Member Avatar for Andres_6

Hi everyone! Im Andres_6, but call me Patrick. I am having trouble with the "import" in Javascirpt, I dont really get it, can someone tell me just how to use it?? import // now what?

Member Avatar for Dani
0
42
Member Avatar for Saboor880

Hi! I have used Google translate web API many times in my java applications for dynamic translation into different languages (e.g printing a receipt in Hindi,Urdu or French Language.) But now I want an API or Jar file to translate text to different languages Offline. I have searched a lot …

Member Avatar for rproffitt
0
670
Member Avatar for Aarav_5

have to implement a static-public method named "csvToList" in the class "Functionality.java". The method gets a string as input parameter and returns a LinkedList<String[]>. Signature: csvToList(String path) : LinkedList<String[]> My problem is to implement this : The method reads a CSV file in the path. Each single line is divided …

Member Avatar for JamesCherrill
0
52
Member Avatar for Nur Izzati

public static void main(String[] args) Scanner.sc=new Scanner(System.in); String name = new String(new char[30]); final String pizza1 = "Chicken Fazita"; final String pizza2 = "Chicken Bar BQ"; final String pizza3 = "Peri Peri"; final String pizza4 = "Creamy Max"; final String roll1 = "Chicken Chatni Roll"; final String roll2 = "Chicken …

Member Avatar for rproffitt
0
220
Member Avatar for Computer Doctor

from socket import * #Start test() def test(): #Specify the port serverPort = 80 serverSocket = socket(AF_INET,SOCK_STREAM) serverSocket.bind(('',serverPort)) #Listen for the 1 connection serverSocket.listen(1) #Print the port address print("web server on port",serverPort) #Start thw while loop. while True: #Establish the connection. print("ready to serve") #Create connection socket for accepted client. …

Member Avatar for JamesCherrill
0
200
Member Avatar for snow_1

when I read FutureTask's run method, I found it use cas to set runner variable, public void run() { if (state != NEW || !UNSAFE.compareAndSwapObject(this, runnerOffset, null, Thread.currentThread())) return; try { Callable<V> c = callable; if (c != null && state == NEW) { V result; boolean ran; try { …

Member Avatar for JamesCherrill
0
81
Member Avatar for Hamsterking

hi there i have an XML file wich contain some music information in a node and i would like to insert more i would like to add more node on demeand when i do i receive this error HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is …

0
97

The End.