32,204 Topics

Member Avatar for
Member Avatar for sumod

Q.Write a program using 2D array. A company manufactures three products P1, P2 and P3. Company has hired five salesman. Each salesman sell all three products. Accept from user number of each product sold by each salesman. Find the product whose sale was largest.Also find the salesman whose sales were …

Member Avatar for sumod
0
2K
Member Avatar for Zent

Hello, Why is (1/0.3) = 3.3333333333333335 ? Where does the 5 come from? Thank you!

Member Avatar for rubberman
0
178
Member Avatar for Shoaib_7

hi deares Is a person can help me? my problem is: I want to connect Scanner to my pc with codeing by java , so have we a class in java to slove my problem ? tanks for all `

Member Avatar for rproffitt
0
78
Member Avatar for Sandeep_21
Member Avatar for AssertNull
0
256
Member Avatar for Ashraf_6

Hello guys, I would like to know how and where I can find a grid layout after compiling my java program using blue j. I've tried checking the tools section but I cannot find it. Thank you

Member Avatar for JamesCherrill
0
154
Member Avatar for Violet_82

HI guys, as my next application I thought I'd build a simple converter, something that allows me to convert from, say, Km to miles and so on. The framework I will use is vaadin (unfortunately) but it will still be java anyway :-). So, I just thought I'd see if …

Member Avatar for JamesCherrill
0
1K
Member Avatar for nitin1

Hi guys, Here is the question: I have Activity A, Activity B. Now, A --> B . Now, pressed the home button. Now, go to any image & "open with" will show my app. when pressing my app as the option, it will hit Activity A. When it will hit …

0
209
Member Avatar for Jayvis

I am new to java and trying out a question but I have no idea why it can't calculate my commission public static void main(String[] args) { Scanner keyboard= new Scanner(System.in);// input form keyboard double retail_price; double emp_num; char trans_code; double a =0.06; double b = 0.08; double commission; System.out.println("Please …

Member Avatar for JamesCherrill
0
1K
Member Avatar for oresnik

Hi guys. I'm working on my school project. My asigment is to make a piano game. The program works fine but my work stopped when i came to a problem. I would like to put the integers, which i get from pushing the specific JButton, into an array. For example …

Member Avatar for Shaun_4
0
2K
Member Avatar for Haroon_4

I am designing an application in Java and it requires networking and for that I am using a framework called Kryonet, now I've been able to learn how to send packets and connect, etc, but I'm still not sure how I would handle logging in. The user would need to …

Member Avatar for jwenting
0
217
Member Avatar for cc

I have a stock system where you can add a item to the system, increase the amount of different items, decrease the amount of different items in a system and completely delete an item from the system. What I am trying to do is when the user inputs the name …

Member Avatar for Ghost_Buster
0
754
Member Avatar for PulsarScript

Have a problem on line 128 : out.println("Location \tAveragePrice"); Not recognize it.And the program not compiling. Have a txt file(cars.txt) : CARREG MAKE MODEL COLOUR LOCATIOn PRICE OWNERS MILEAGE 09-L-1258 OPEL ASTRA SILVER LIMERICK 12999 0 35000 01-D-7845 FORD FOCUS BLACK LIMERICK 1500 3 85000 11-D-7425 NISSAN ALMERA WHITE DUBLIN …

Member Avatar for JamesCherrill
0
384
Member Avatar for PulsarScript

Hi,please help.Stack with streamtokens.I want to figure out how to print the table : County Max Min Condition Clare 4 0 Cloudy Cork 3 0 Rain Kerry 4 1 Showers Limerick 4 1 Cloudy Tipperary 3 -1 Clear Waterford 2 -2 Clear in format : County Average Daily Temp Freeze …

Member Avatar for JamesCherrill
0
294
Member Avatar for divinity02

hi guys havent been here for a while. I am practicing this program for a few days now I havent seen no syntax error but am not getting any output. the program is about a loan officer for two group of employees for a credit union. the regular staff salaries …

Member Avatar for JamesCherrill
0
220
Member Avatar for PulsarScript

Hi all can you throw some light on the resolution of my problem,should be simple ,but can not figured out .Here is my server and client class,The problem is server does not show the JOption pane with result. public class Client { /** * @param args the command line arguments …

Member Avatar for PulsarScript
0
1K
Member Avatar for cproger

This might sound like it's very simple but I tried many things and it doesn't work. When the user clicks the back button on a window it's supposed to also dispose another window. I've tried using static. if(Tester.backJButton.isEnabled()) { this.dispose(); } Tester is the name of the class holding the …

Member Avatar for cproger
0
237
Member Avatar for Mark_54

Hi there, I was given a little exercise to complete for a graduate position. I have only done a HDip in Computer Science, so that's only about 8 months of Java stuck in with a whole other pile of stuf.. long story short.. I've only get the basics of coding, …

Member Avatar for JamesCherrill
0
318
Member Avatar for Norman_2

implement a full class Car that has teh following characteristics: brandName, PriceNew, Colour and Odometer. The class should have a constructor that prompts the user to enter the characteristics above. A method getPriceAfterUse() which return the price of the car after being used according to the following formula: a.car price …

Member Avatar for stultuske
-2
214
Member Avatar for Chris_38

Can someone give me some programming ideas to keep my knowledge up-to-date? I received a masters degree in computer science back in December and been job searching since then. I want to tell an employer something.

Member Avatar for rproffitt
0
287
Member Avatar for Violet_82

Hi, I'm thinking to upgrade from java sdk 7 to 8 (JamesCherrill will be pleased,lol!) and I was just wondering if there is anything I need to be careful with, especially in eclipse. I will start first with Windows, and then do the same thing in Ubuntu. My eclipse seems …

Member Avatar for JamesCherrill
0
296
Member Avatar for Isky

Hi, I'm new to this Java world, and just can't figure out this problem. After I use nextInt or nextDouble, and try to use nextLine, it won't work unless I put nextLine twice. What's the problem there, and what would be the good way to handle this? Just gave a …

Member Avatar for stultuske
0
21K
Member Avatar for Mark_54

Hi there, terribly confused how to get going with a career in programming. I have basic knowledge of Java programming principles, and I understand to some degree the object orientated aspect of the language also. My question is where to go now? Or what else to learn? Here are some …

Member Avatar for Reverend Jim
0
431
Member Avatar for Clayton_2

An auto dealership has 50 cars and 50 customers who all show up simultaneously when the dealership opens.. All cars are off when the dealership doors open. As the customers enter, the first customer, denoted C1, starts every car. Then the second customer, C2, beginning with the second car, denoted …

Member Avatar for AssertNull
-4
198
Member Avatar for Sergio_4

Hello All, I am unable to import javax.sound.sampled in a mobile app I have been playing with. I am currently using AndroidStudio and I do have the path pointing to the JDK not the JRE. I was for a while able to import them when I included the jar files …

Member Avatar for rproffitt
0
525
Member Avatar for geoffy0404

Not sure why but the chronometer counter will start as soon as the application starts without me clicking the button. Does anyone see what the issue would be? package com.example.android.courtcounter; import android.os.SystemClock; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.view.Window; import android.view.WindowManager; import android.widget.TextView; import android.widget.Chronometer; public class MainActivity extends …

Member Avatar for stultuske
0
758
Member Avatar for Kajal_3

Can anyone help me with this? You have been hired by the Wayne County Road Commission to write a Java console application that dispatches patching trucks on county roads. It reads truck and route data from files and stores them in objects. It then reads an order file to dispatch …

Member Avatar for JamesCherrill
-1
334
Member Avatar for Yuna_1

Hello I am almost finished with my assignment but I just need it to do the math correctly and I need help!!! I can easily do the problem on paper just fine however I can't get Netbeans to create the right answer. Here is the problem I need it to …

Member Avatar for JamesCherrill
0
336
Member Avatar for Saboor880

Hello to all! I know well how to access database and its tables from sql server in Netbeans, But know I need to access a report from sql server in Netbeans. For example if I have a table named "MyTable" in sql server 2008 and then I ran a query …

Member Avatar for stultuske
0
211
Member Avatar for Hari_13

I am unabe to send email. The page is hanging and it is not displaying any error. Please help me fix the issue thank you in advance.

Member Avatar for JamesCherrill
0
116
Member Avatar for Michael_56

I am fairly new to java using Spring boot and maven. I was assigned a task to get the revision number and timestamp for the current revision from the project and put them into an app.properties file . Most of the demonstrations I have found displayed the templates as such, …

Member Avatar for stultuske
0
332

The End.