Questions tagged as 'java'

3
answers

Because it does not sum my cycle for

Hello, I am all studying a Java course but I can not understand why the result of Sum is 0 public class TestClass{ public static void main (String args []){ int sum = 0; for (int i = 0, j = 10; sum > 20; ++i, --j) { sum = sum+...
asked by 10.04.2018 / 15:59
2
answers

My math random method does not work

I have a problem, I was trying to solve a problem where I was asked to calculate the annual water consumption of a floor of a department, the department has 8 floors of 4 houses each floor, I created the matrix where the rows are the months of t...
asked by 21.03.2018 / 15:17
1
answer

Why do I get an error in the switch / case? Java

It is requested to develop the algorithm that allows to analyze the behavior of the sales of the Ice cream shop "La dulzura" For this, it is requested to enter a sample of 5 sales during a period of time. You must enter: a. Ice cream si...
asked by 05.10.2018 / 21:11
2
answers

How to solve the error in the switch / case? Java

It is requested to develop the algorithm that allows to analyze the behavior of the sales of the "La sweetzuela" ice cream shop. For this, it is requested to enter a sample of 5 sales during a period of time. You must enter: a. Ice crea...
asked by 05.10.2018 / 23:01
1
answer

How can I add a large text in Netbeans without showing it to me in a single line and cut it? [closed]

I would like to know what I should do so that when you run the program, do not show it to me like this: ex: "I've always wanted my computer to be as easy to use as my phone, ....." in this example the rest of the text is not shown follows in a...
asked by 05.11.2016 / 04:26
2
answers

make a string random, which I select the following results, ignoring the ones that were already obtained

I have been asked to do a program which asks me random questions which will be answered true or false; my problem is to make a string for this, but do not make the random do not repeat the questions that I did previously the code would be som...
asked by 15.10.2018 / 22:57
2
answers

What should I do to make this program work? POO JAVA

Implement the Account class, knowing that: a. When you create an account, your balance is zero. b. It is only possible to extract an amount less than or equal to the balance in the account. I must do it following this annex: The p...
asked by 30.10.2018 / 18:06
1
answer

Error onRewardedVideoAdFailedToLoad Admob Interstitial rewarded Android Studio

I'm implementing Admob Interstitial, rewarded in Android Studio, but I have this error when I want to upload the ad:    onRewardedVideoAdFailedToLoad. I'll let you join the code captures and the admob settings. package com.android.proye...
asked by 05.11.2016 / 10:46
2
answers

how can it be done so that when you click on a menu icon it changes to another icon?

THIS IS THE XML <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" tools:context="org.sfaci.agenda.MainActivity"> <item android:id="@+id/action_modificar" a...
asked by 10.11.2017 / 01:56
2
answers

Make a chain of if and pick up a value for a variable when it meets the conditions

What happens is that I made a chain of if () with many conditions and I hope to collect a different value for "TipoAtencionX" depending on each of the conditions. Example: If you meet condition 1, I want "TypeAttendanceX" to be "attention1"....
asked by 12.06.2018 / 14:08