32,204 Topics
| |
/** * @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++){ … | |
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.... | |
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 … | |
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 … | |
<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> | |
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 … | |
Hi! I need a suggestion for learning Java programming in a best and easiest way. | |
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 … | |
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? | |
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 … | |
public class Hello { public static void main (String[] args) { System.out.println("My contact number is: "); int srv = 82; system.out.println(srv); | |
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.*; … | |
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 | |
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 | |
I want to do code array with topic bmi.....can you give one example? | |
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 … | |
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 | |
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. … | |
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 … | |
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 … | |
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. */ … | |
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 … | |
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; } }; | |
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? | |
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 … | |
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 … | |
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 … | |
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. … | |
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 { … | |
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 … |
The End.