32,204 Topics

Member Avatar for
Member Avatar for Ashley_16

This is my code, which changes by frame, I need to do a scoring system, but when I used the following code to add a score it works fine for the first 2 frames then doubles and by the end it's like 229. Thank you for any help. Score; var …

0
250
Member Avatar for Cory_3

I am trying to do my first 2d game in android studio, just for fun and experience, but I am having a major problem. What I want to do is start from a title screen with two buttons, 'Play Game' and 'High Score' (it's obvious what these buttons do. Where …

Member Avatar for John_165
0
603
Member Avatar for SimonIoa

Hello i want to run my Ionic Project on my android device when i run `ionic cordova run android` on node.js command prompt i am getting this error ..... [14:26:25] webpack finished in 8.20 s [14:26:25] sass started ... Witout `from` option PostCSS could generate wrong source map or do …

Member Avatar for SimonIoa
0
3K
Member Avatar for Sydrick James
Member Avatar for nishto

I want to fetch invoice data from two tables table a is in single row and table b data should be multiple rows single data is fetching correctly but facing problem with table 2 multiple data fetch. php file <?php $connection= mysqli_connect("localhost","root","","invoice"); $invID = $_POST['ID']; $Invo = "SELECT a.in_no, a.client, …

Member Avatar for Dascal_1
0
1K
Member Avatar for John_192

I have an Epson receipt printer (Model number: TM-T88V), but I cannot use it. I do not have a POS (point of sale) software that will let me do what I need to do, nor do I have the knowledge I need to understand the developers guide manual that comes …

Member Avatar for rproffitt
0
817
Member Avatar for Mr.M

Hi Dw. This is my first Android app, and what I'm trying to do is to post a POST/GET method to my webserver using Http in Android studio. I also have a Textview which suppose to display echoed data from server which will be a response to a request since …

Member Avatar for Mr.M
0
721
Member Avatar for Liviniesh

Define a class named Pair where the data(state) part contains two double-typed numbers, num1 and num2. The method(behaviour) part contain the following methods: o getSum() – returns the result of adding num1 with num2 o getdifference() – returns the result of substracting num2 from num1 o getProduct() - returns the …

Member Avatar for happygeek
0
364
Member Avatar for abhijeet P

Hello all, I have a code to encrypt data in C# and I want it to b decrypted in Java... following is the C# code [CODE]string Encrypt(string textToEncrypt, string key) { RijndaelManaged rijndaelCipher = new RijndaelManaged(); rijndaelCipher.Mode = CipherMode.CBC; rijndaelCipher.Padding = PaddingMode.PKCS7; rijndaelCipher.KeySize = 0x80; rijndaelCipher.BlockSize = 0x80; byte[] pwdBytes …

Member Avatar for JamesCherrill
0
9K
Member Avatar for fatima_7

hi how can change the size of image: from CSS for three pages using dreamweaver ? how can i (position and reposition something in the page)? i tried this tag, but nothing change: img.resiz{width:200px;height:1000px; what is missing ?? should i include the img link? and what will be the correct …

Member Avatar for Tarek_2
0
273
Member Avatar for Saida_1

{public RestaurantBill() { //Create DecimalFormat object DecimalFormat formatter = new Decimal("#0.00"); // Initialise instance variables //Declaring variable(s). double bill= 0.00; double billtip= 0.00; double billtax= 0.00; double total= 0.00; //Initializing variables. //Obtaining user's current amount without tax and tip. System.out.println("Enter the amount of your restaurant bill."); bill = input.nextDouble(); //Calculating …

Member Avatar for Reverend Jim
0
311
Member Avatar for ekka

hello guys I want to know about dependency injection in angular 4 and spring , so I gonna start with what I know : in angular 4 we inject the dependency by setting the service ( or something else ) in the constructor's arguments of component, and despite we inject …

0
284
Member Avatar for Ellena

class robot: def __init__(self, length = 20.0): self.x = 0.0 self.y = 0.0 self.orientation = 0.0 self.length = length self.steering_noise = 0.0 self.distance_noise = 0.0 self.steering_drift = 0.0 def set(self, new_x, new_y, new_orientation): self.x = float(new_x) self.y = float(new_y) self.orientation = float(new_orientation) % (2.0 * pi) def set_noise(self, new_s_noise, new_d_noise): …

Member Avatar for JamesCherrill
0
797
Member Avatar for Daniel_84

I'm having problems compiling my program, I was wondering if someone could tell me where I went wrong and how to fix it. I would be deeply apreaciative of your help!!!! :) import java.util.Random; import java.io.Console; class project2_0 { int[] race = new int[70]; int tortoise; int hare; Random randomnumbers …

Member Avatar for JamesCherrill
-1
1K
Member Avatar for screenedcreamy

I have this use case where in I would need to dynamically create java objects out of json input and insert the data into sql tables. I tried using gson APIs but unfortunately we need to specify strucuture of that class (Car.class). Is it possible to dynamically achieve the above …

Member Avatar for Tarek_2
0
365
Member Avatar for Elifas

This time we would like the user to enter the following details for 3 items: name, cost price and quantity. Your program should the print out a receipt including a tax amount of 11.75% on the subtotal of all the three items entered. The receipt should be formatted in columns …

Member Avatar for JamesCherrill
-2
138
Member Avatar for vinoth_6
Member Avatar for vinoth_6
0
99
Member Avatar for Kenny_4

Hi everyone, I'd like to ask for help modeling my JPA entities and their relationships with each other. I use more abstract class names as class names in my project[](https://phonty.com/), so I'm going to translate that into a "more tangible" example. I start from a festival where several gigs take …

0
172
Member Avatar for Violet_82

Hi guys, I'm playing around ith optionals a little, but I'm not surewhether this is the correct behavious as I'm getting a null pointer exeption (I thought the point of Optionals was not to get a null pointer.) SO I'm setting an object to null and before calling toString on …

Member Avatar for Violet_82
0
383
Member Avatar for John_165

I trying to write a `spring batch` using `SpringBoot`. At first the program will read data from database, then write it to `.csv` file format. This is the code I have tried **Reader** @Bean public ItemReader<A> Reader() throws Exception { List list = new ArrayList<>(); JdbcCursorItemReader<A> reader = new JdbcCursorItemReader<A>(); …

Member Avatar for John_165
0
370
Member Avatar for Lisa_14

Hello friends, I'm trying to remove all tags from a Wikipedia entry, leaving a simple text file. I have downloaded an HTML file from Wikipedia and hunted through my program. But the tags are not removed properly. Instead, only nonsense comes out of it. Where is my thinker? Java: import …

Member Avatar for pty
0
378
Member Avatar for Siddharth_13

I have written a formal Deadlock prevention code but I'm having trouble implementing this algorithm. Any help is appreciated. I have represented the algorithm below, **Formal algorithm description** Data structures at a process i: (It is the initial value in the parentheses.) • OUTi: set of integer, the set of …

Member Avatar for JamesCherrill
0
191
Member Avatar for gaurav_28

i just want to write a code for simple fare calculator using conditional statements in JAVA. whose out should be: Enter the distance covered: 22.6 First 5 KM : 50 Rs. Next 15 KM @12 Rs: 180 Rs. Next 2.6 KM @14 Rs. :36.4 Rs.

Member Avatar for tinstaafl
0
6K
Member Avatar for jmace

Well, I've been learning Java and I managed to create an FTP client that uploads and downloads files from a server. Oddly, the thing I can't figure out is how to do an FTP delete. Can anyone help me on that? I don't want to use an API or someone …

Member Avatar for rproffitt
0
699
Member Avatar for Priyank19

Spring Batch exception records inserting in database Hi, I am currently working on project wherein I am reading, validating and then inserting records in database. Now, 1. While validating, if some erroneous record comes up, I have to update its status in db and continue processing next record. 2. If …

Member Avatar for rproffitt
0
189
Member Avatar for tensity

I am trying to use the getParent method of the File library. Here is the code I am working with, but I am getting a null string: public class MyCode { public static void main (String[] args) { File f = new File(""); String name = f.getParent(); System.out.println(name); } } …

Member Avatar for JamesCherrill
0
530
Member Avatar for Cory_3

I am developing a new android app, and I've run into a bit of a snag. While everything else works, I want to have it so that when you click on the screen, it exits the program, same as if you click the back button. How do I get around …

Member Avatar for rproffitt
0
369
Member Avatar for rahaf_1

hello i want to create two arrays i have the index for them and the size and have the dot product of a and b and create a third array that is c[i]=a[i]*b[i] however i tried to do it but the output doesn't come the correct :( import java.util.Scanner; public …

Member Avatar for AssertNull
0
413
Member Avatar for Damo_1

Hello everybody, so I am haveing two tables (GUI is used), each has name and number colums, and I want to sum numerical columns only (which I have done) and want to use jtextfield to show user after a button is pressed, strings like "greater, less, equal to". So the …

Member Avatar for JamesCherrill
0
236
Member Avatar for Owais_2

Hey guys this is my first time using this site. Im having trouble creating a grading scale that averages out grades. Whenever I enter the grades in from the console I get some odd answers that make no sense. Can someone give me some pointers in the right direction? public …

Member Avatar for Owais_2
0
409

The End.