32,204 Topics
| |
What are all num referring to ? class Sample { int num; void method() { num = 1; int num = num = 2; num = 3; } } | |
Unit conversion. Write a unit conversion program that asks the users from which unit they want to convert (fl. oz, gal, ft) and to which unit they want to convert (ml, l, m). Reject incompatible conversions (such as gal→ m). Ask for the value to be converted, then display the … | |
Hi, could you please let me know what should I learn first about programing? I mean, may be I need to learn HTML, C++, Java, read a specific book, I don't know where to start and hope you can show me the way, please!! I would really appreciate it | |
I was doing GUI based application, when i run the MyChatPage particularly, it able to send the text to the server and send to the client textarea, which is my objective, but if i run from MyChatIP class and create new object to open the MyCHatpage frame, it will hang, … | |
import java.util.Scanner; class bank{ public void termDeposit(){ int principle; double rate,years; Scanner sc=new Scanner(System.in); System.out.print("Enter Principle Amount : "); principle = sc.nextInt(); System.out.print("Enter rate od interest : "); rate = sc.nextDouble(); System.out.print("Enter time period in years : "); years = sc.nextDouble(); double maturityAmount = (principle*(Math.pow(1+(rate/100),years))); System.out.println("Maturity Amount after " +years+ … | |
I have a problem: I can't get the correct answer from the webservice. The two parameters are correct and the source seems to me to be correct. The system does not require authentication ... What am I doing wrong? <? try { $wsdl = "http://wsr.brt.it:10041/web/GetIdSpedizioneByRMNService/GetIdSpedizioneByRMN?wsdl"; $client = new SoapClient($wsdl); $result … | |
I have a class which is sort of like a repository, and every time I write to the zip archive using this command, the prior activity is overwritten. /// <summary> /// Insert file into existing archive file. /// </summary> /// <param name="fullPath"></param> /// <param name="stream"></param> public void InsertIntoFile(String fullPath, Stream … | |
| How can I solve this ? implement java program, green land zoo park has four types of animals, elephants that drink water, monkeys that eat bananas, flamingo that fly, and lions that eat meat, using your understanding of inheritance |
Hi, how i can do translator a word offline to frensh in english in java i find Moses,stanford phrasal .. but i can't find a simple example for understand i need help please and thanks | |
The solution of the problem includes modeling and realization of the process of issuing cash receipts in a store. It is necessary to create classes that store and manipulate information about: store; cashier in a store; goods in a store; cash register in a store; a receipt that is issued … | |
I'm new to Android Studio and Java and I'm trying to display a dynamic battery percentage on multiple activities, but it is only showing on the main screen. I am also trying to do the same thing with displaying time. I am trying to get it work with my second … | |
I've created a method that requests input for a grading and would like 0 to be a valid input result. But my code doesn't allow it? Can anyone help? public int getValidModuleMark3 () { Scanner input = new Scanner(System.in); int mark; System.out.println ("Enter number of compensentable failed credits in range … | |
a) Write MARIE code to: 1. Input a number and store it in X . 2. Y will be equal to “ | |
I need with with a section of my assignment where it asks to take four first attempt module results (i.e. all module average, ISM module average, number of compensentable failed credits and number of outright failed modules) as parameters and returns the degree classification (e.g. “distinction”, “merit”, “pass” or “fail”). … | |
[COLOR=Indigo]Hey I'm pretty new to C++. I'm taking a class on it now but I don't know how to make sounds in C++... I've done QBasic so I have a little programming background. I'm right now thinking of what to do for a program, and it largely depends on if … | |
I am trying to get the text entered from jtf3 and jtf4 to show in the Message Dialog str1 and str2. Error states that the symbol fot str1 and str2 cannot be found. Please advice. class ChuaWeiheng extends JFrame { private final JLabel jl, jl1, jl2, jl3, jlimage; private final … | |
Hello people! :) I'm quite new in the programming world. I'm really interested in programming from the time I found that there's coming a game called Hytale, and **I would love to be able to make mods for it**. So basically I have a book that should introduce me to … | |
Hi guys, I was trying to test a method which takes a user input, does something and then returns that input but I'm having some issues with it. I've attempted a few solutions, mostly described in SE, I will leaave them out of this post and discuss instead the one … | |
hai i need help,my lect ask to do assignment and the question are do insert,delete,edit and print output for queue and stack.everthing is okay until i got stuck how to do edit in queue and stack......someone please help me.thanks in advance | |
Hi all, I am Luna. I am pretty new here so please be patient with me. I go to a lot of concerts, but my favorite singer is Travis Scott. I'm currently studying to be a Merchandise manager which is what I've always wanted to do. I think the one … | |
As one of the most powerful tools in Excel, PivotTable has the ability to calculate, summarize, and analyze data, which allows us to see the comparisons and trends of our data more intuitively. In addition, PivotTable also has the ability to sort and filter data, and it can meet our … | |
I keep getting CircleInformation.java:13: error: cannot find symbol float circumference = 2 * (PI * radiusF) ^![Screen_Shot_2020-04-20_at_2_19_38_PM.png](/attachments/large/4/dc19daf5031100026891115972a1d2a2.png) | |
When i run my code i get this error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: How do I fix this? this is my code so far: import java.awt.Font; import javax.swing.*; public class Program7 public static void showOutput(String output) { JTextArea jta = new JTextArea(output); jta.setFont(new Font("Consolas", Font.PLAIN, 60)); JOptionPane.showMessageDialog(null, jta); } … | |
Hi, I want someone to explain this code ( method ), and how it works.؟؟ Especially the process of moving the elevator // The elevator class draws the elevator area and simulates elevator movement class Elevator extends JPanel implements ActionListener { // Declaration of variables private Elevator_Simulation app; // Elevator … | |
I am trying to sort my array to print it out according to the suits e.g. S10, S6, H11, C4, D10 etc. I have tried adding Arrays.sort but it doesnt work. Please advice. private void transfer2D(String[][] twoD, String[] strArray) { int i = 0; for( int suit = 0; suit … | |
I am trying to get my private void transfer method and pass it into a 2D array transfer2D method, after which I am able to print it out using the print2D_1 method. I am also trying to sort the array from the highest suit to the lowest suit followed by … | |
The End.