Posts by Jow • 31 points
5 posts
-
-2
votes1
answer49
viewsQ: How to implement the DAO standard in subclasses?
I’m developing an app that’s a gun store. I own the class Produto with the subclasses Arma, Faca and Municao. In this project I am applying the DAO standard, but I don’t understand very well how its…
-
1
votes1
answer312
viewsQ: Problem generating random value using Random class
The program is generating a random value, but sometimes it pops the array, or simply displays nothing. Examples of the error: My code: import java.util.Scanner; import java.util.Random; public class…
-
-2
votes1
answer1122
viewsQ: "String index out of range: 5"
There is an error mentioned in the question in my java program. The program is a barcode reader. The user informs the digits of the code (except the last one). The sum of the numbers q are in odd…
-
-1
votes1
answer52
viewsQ: Loop code not satisfied
import java.util.Scanner; public class CodigoDeBarras { public static void main (String[] args) { do { Scanner sc = new Scanner(System.in); System.out.println("Informe os primeiros 12 caracteres do…
-
2
votes2
answers2462
views