35,618 Topics

Member Avatar for
Member Avatar for nxcx

package de.extrema.java; import java.util.Scanner; public class Pogramm { public static void main(String arrg[]) { try (Scanner scanner = new Scanner(System.in)) { double a , b , r , A , h; int number2; int number; System.out.println("Körper: "); System.out.println("Deine Wahl: "); number = scanner.nextInt(); number2 = scanner.nextInt(); switch(number) { case 1:{ …

Member Avatar for Nutster
0
379
Member Avatar for Sumanth_1
Member Avatar for Marshal_1

I'm writing a VERY simple clock to run on an old tablet using Android Studio - it displays the current time and day (I'm retired and regularly forget what day it is). I want to add the first calendar event for the current day to the display so it goes …

Member Avatar for RuMedia
0
249
Member Avatar for woomar

Hi. I was wondering if anyone could help me with checking for a valid move in Othello. I was thinking about hard=coding everything but that takes too long. this is what i have so far: 1. Check which direction is valid (adjacent piece is different from piece being placed) 2. …

Member Avatar for JamesCherrill
0
5K
Member Avatar for Tân_3

1/Write a TeachArithmeticFrame class that teaches children arithmetic. The frame uses a JLabel for a problem and a JTextField for the user answer. When the user presses the Enter key (while the JTextField object is active) or clicks the OK button, display a message stating whether the user’s answer is …

Member Avatar for rproffitt
0
314
Member Avatar for Gayathri_2

Hi, I am developing a webpage using servlets.The main page, with simple sing-up and sign-in form along with forgot password. So when i try to reset my password password-reset link, when i try copy paste the link from fire-fox to chrome browser empty page is getting displayed. But I want …

Member Avatar for DGPickett
0
354
Member Avatar for Tân_3
Member Avatar for tinstaafl
0
223
Member Avatar for kaleb2020

# Class 1 # import java.awt.Canvas; import java.awt.Color; import java.awt.image.BufferStrategy; import java.awt.Graphics; import java.lang.Runnable; import java.lang.Thread; import javax.swing.JFrame; import java.awt.image.BufferedImage; import javax.imageio.ImageIO; import java.io.IOException; public class Game extends JFrame implements Runnable{ private Canvas canvas = new Canvas(); private RenderHandler renderer; private BufferedImage testImage; private Rectangle testRectangle = new Rectangle(30, 90, …

Member Avatar for rproffitt
0
328
Member Avatar for Mariam_9
Member Avatar for Amna_5

I have developed a game for android mobiles ["Rise Up Air Balloon"](https://play.google.com/store/apps/details?id=com.abacus.riseup). I want to updatte it. Kindly suggest me something if it is better to update https://lh3.googleusercontent.com/rB-fPEBiaGzT_ubSzCtSfftC4pKkIm5buAS2_DhQz4_exYFCrjbcN2T1NhkmM0A3Jj0=s180-rw

Member Avatar for Antionne
2
1K
Member Avatar for bastianemutan

Hello everyone, I am Bastian, i would be very grateful if anyone could help me on this one. I want to self-study about creating a Hotel Management program in Netbeans but i am afraid that i just have a basic knowledge in Java. I studied Programming but unfortunately i have …

Member Avatar for rproffitt
0
277
Member Avatar for Kaleb_1

It's not showing the image in the terminal window or the jframe. import java.awt.Canvas; import java.awt.Color; import java.awt.image.BufferStrategy; import java.awt.Graphics; import java.lang.Runnable; import java.lang.Thread; import javax.swing.JFrame; import java.awt.image.BufferedImage; import javax.imageio.ImageIO; import java.io.IOException; public class Game extends JFrame implements Runnable{ import java.awt.Graphics; import java.awt.image.BufferedImage; import java.awt.image.DataBufferInt; public class RenderHandler{ private BufferedImage …

Member Avatar for JamesCherrill
0
317
Member Avatar for M_27

I made this game equivalent to tictactoe but with a slight twist called find the X between two players using socket programming with Java. Don't know where I went wrong in trying to find the X but for some odd reason my count variable never updates allowing the victory message …

Member Avatar for JamesCherrill
0
496
Member Avatar for Pepe_1

Good After. Can you please help. How to convert my python code into Java ? Need Help.. Espcially in Soil Moisture sensor using java language.

Member Avatar for JamesCherrill
1
957
Member Avatar for ArtisticWhile

Hello I'm writing a program that reads in data from a file to create an array of clients and stocks. I completed my client class and stock class. I'm stuck on my driver. ![Screen_Shot_2019-12-02_at_11_53_13_PM.png](/attachments/large/4/0ceae90458b69aa4d08f7e5937ba4a6e.png) This is what I have it prints the text file but where would I include the …

Member Avatar for JamesCherrill
0
243
Member Avatar for Speed_Freak5150

I am trying to get a program to work that asks for a user input to count by that number and display 10 numbers per line. I can not get it to display 10 numbers per line. If anyone can explain to me what I am doing wrong? public static …

Member Avatar for JamesCherrill
1
2K
Member Avatar for Azhan14

I have a problem that regarding with my projects. I need to create a bleuprint of an urban planning and I manage to print all the buildings that are required usning array. My problem right now is how I am going to print the roads. (<>^v, 1, -1, Road (-1 …

Member Avatar for rproffitt
0
254
Member Avatar for Teyhah

*someone can help me to answer this question. Create an array that can hold ten integers, and fill each slot with a different random value from 1-50. Display those values on the screen, and then prompt the user for an integer. Search through the array, and if the item is …

Member Avatar for rproffitt
0
299
Member Avatar for Rakshith Rahul

I'm a beginner and working on a digital attendance system. I'm using the following code in actionPerformed: for (int i = 1; i < count; i ++) { if (ae.getSource () == buttons[i]) { switch (available[i]) { case 1: { available[i] = 0; names.remove (unames[i]); System.out.println ("removing " + unames[i]); …

Member Avatar for JamesCherrill
0
257
Member Avatar for johnalexa

Hi, I am John and pursuing graduate, my question is why Java or oops language does not use multiple inheritance? This is nightmare for me. My exam is coming soon. Please provide me a good answer

Member Avatar for Deep986
0
360
Member Avatar for AquaGirl101

Hello Everyone!, I am currently a freshman at MATC(Milwaukee Area Techinal College) I am at the one Downtown in Milwaukee, and I am taking a class called Intro To Oriented Computer Programming(which is learning and coding the Program Java, and I have been seeing a tutor, but I cannnot figure …

Member Avatar for Dani
0
321
Member Avatar for Vrunda_1

Create a Project name Banking which will have the following classes with the given instance variables and the methods Create a class Account with first name , last name, address , phone number, balance (instance variables) Withdrawal and deposit methods Create checking account class extending the account class, Having additional …

Member Avatar for Reverend Jim
0
309
Member Avatar for hiyatran

in HTML you can call CSS [CODE]<head> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <tr><td class="cssHere">Display</td></tr>[/CODE] can you even call CSS in javascript? [CODE]document.writeln("<tr><td class="cssHere">" + Display + "</td></tr>");[/CODE] if so how do you even call the "[B]style.css[/B]" thanks

Member Avatar for Purvi_1
0
274
Member Avatar for medcaremso

I am doing my final year project in j2ee. I am making an online health management system ... it'll be like [this](https://medcaremso.com/) Nowadays I am documenting the project .... The question is that are there some useful documentations over the net or you people have ? I want some professional …

Member Avatar for rproffitt
0
466
Member Avatar for jprog1000

Hello, I am writing a Java program where the first JFrame has choices for number of shapes, width, height and the type of shape (oval, rectangle or both) and a button is clicked that opens up another JFrame where the shapes are drawn with a time delay until the number …

Member Avatar for jprog1000
0
433
Member Avatar for Violet_82

Hi all, I have an application which saves data (books details like book title, author and location) to a mySql db and performs CRUD operations. I thought I'd use hibernate to take care of the ORM side of things and everything was OK when it came to create a record, …

0
930
Member Avatar for Blink383

My problem is setting the size of the JButton. I want it to be a little button centered below the "Hello World" JLabel field (as it is now it spans the full width of the JFrame). I am unsure what is causing the setPreferredsize to be ignored. I am an …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Saboor880

Now I am making my pos software client - server based software. I am using java derby as the database. On the local host I am running the program successfully. But on the remote server I face an exception. First I tell you, how I am connecting to the remote …

Member Avatar for JamesCherrill
0
388
Member Avatar for Saboor880

Hi! I have made a POS Sotware. I have used only one JFrame as Main/Home Screen of the software and used JDialogs for all other screens. In this post I have concern with the 2 screens; Home Screen(which is a Jframe) and Sales Screen(which is a JDialog). As Home Screen …

Member Avatar for JamesCherrill
0
1K
Member Avatar for m.mohamed

I am trying to create a method that will count number of zeros in a statement/numbers (numOfZero), that a string as input and returns the number of occurrence of ‘0’ in the string. And if there is no zero it should return zero. I have used String.length() and String.CharAt(int index). …

Member Avatar for rproffitt
0
217

The End.