Questions tagged as 'java'

1
answer

Where should I put my database [closed]

Hello, good afternoon, I am in doubt about where to put the database if it can be placed in a hosting or in a linux vps which two would be better?     
asked by 21.11.2016 / 17:14
1
answer

What's wrong?

import java.util.Scanner; public class desafio { public static void main(String args[]) { char op; float soma; float mult; float sub; float div; float num; Scanner entrada = new Scanne...
asked by 26.10.2017 / 21:30
4
answers

What Java command returns the uppercase characters? [closed]

For example, "Jorge Aragão Silva" returns me "J A S"     
asked by 13.11.2018 / 19:31
1
answer

Screen becomes disorganized when executing [duplicate]

I'm having a problem, I'm starting on the android programming! It had already started a while and stopped for the same reason I'm having now: my computer is not very good and kinda does not accept the Android Studio Emulator. So I opted to...
asked by 11.07.2018 / 07:31
1
answer

Java game using Random, Boolean, Scanner, while, if / else [closed]

The idea of the game is to use a random from 1 to 100 and the user hits, when the user's number is higher, send a message warning the user, likewise if it is smaller and giving more chances for the user to hit. The code itself is not compilin...
asked by 01.07.2018 / 19:25
2
answers

How to use a CSS by the url of the site?

I would like to know if I have a different CSS for a "Java" web system without having to include it in the source code? I have a new CSS file that I resized the buttons and spaces and need to use it in this web application, I need to point th...
asked by 25.06.2015 / 14:18
1
answer

PHP or Java? Positives and negatives [closed]

I've been using PHP a while ago, and even using a framework, enjoying Object Orientation I have the perception of seeing the language limitations. For example, if one language supports more connections than the other, or if one is easi...
asked by 12.09.2014 / 17:50
1
answer

Function to take coordinates mouse drag

I'm developing a paint in java and would like to know how to create a function that stores the mouse coordinates of the initial and final mousePressed and mouseReleased. Thanks!     
asked by 22.07.2016 / 14:02
1
answer

how to access the jbutton that is in the other class?

I have jbutton in the main class, so I put it as public to be able to access from another class. but you are not doing the right thing public class piscarbt{ tela t = new tela(); public void piscar(){ t.jButton1.setBackground(Color.whit...
asked by 14.06.2016 / 07:23
2
answers

NullPointerExcpetion [duplicate]

Hello stackoverflow friends, I'm finishing my calculator and I'm having problems with nullpointer, I'm new to java and I'm not sure how to change the logic to solve the problem, there goes the code that I'm having problems public Double cal...
asked by 18.05.2016 / 03:27