32,199 Topics

Member Avatar for
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
205
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
216
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
380
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
218
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
315
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
429
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
520
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
757
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
335
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
115
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
329
Member Avatar for Violet_82

Hi guys, I have a question about error handling. Still working on the addition application and now that I've learned what are the correct exceptions to handle I'm not sure what to do when I've established that the my inputs are all valid and print my result. Let's have a …

Member Avatar for Gribouillis
0
415
Member Avatar for Violet_82

HI guys, I'm really new to SVN and today I've installed tortoise as I'm working in windows at the moment and I'm following this tutorial https://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-qs-guide.html. So, I have a java project in Eclipse: I have created a local repository folder on my machine and imported a project in it. …

Member Avatar for Violet_82
0
286
Member Avatar for Violet_82

Chaps, I wonder if you can give me a hand with this. Here's the brief: "Create a program that draws 10 random filled shapes in random colors, position and sizes. Method paintcomponent should contain a loop that iterates 10 times. In each iteration, the loop should determine whether to draw …

Member Avatar for Verse_1
3
5K
Member Avatar for Josh_2

Hello all I have a chat room application where clients connect to server and can chat between each other, I am also trying to add a feature where a client can request a file from the server sucha s an image sound file or video I am trying to convert …

Member Avatar for Josh_2
0
1K
Member Avatar for Rach!

i Am new to selenium webdriver and I want to automate a webpage related to my project. I am currently working on login page, however I facing problem with the login button which I am confused which locator to use. The login button is below: a href="javascript:LoginSubmit('Log In')"> img border="0" …

0
121

The End.