I've looked at multiple sources and everyone is saying different stuff. Which one should I be using? FileWriter/FileReader, other people was saying PrintWriter, and one even said : "Formatter" which...
Type: Posts; User: Masic1990
I've looked at multiple sources and everyone is saying different stuff. Which one should I be using? FileWriter/FileReader, other people was saying PrintWriter, and one even said : "Formatter" which...
Thank you again.
- Nicky
I just keep getting this same error message:
Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation problem:
Cannot refer to the non-final local variable item defined...
import java.awt.FlowLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import java.awt.BorderLayout;
import java.awt.Color;
import...
Thank you, I have seem to found a solution to my problem, which is here:
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import...
Main (groupingTest)
import javax.swing.JFrame;
public class groupingTest {
public static void main (String[] args) {
groupWindow test = new groupWindow();
...
I'm guessing it's your homework as you're asking for specifics and theirs a built in function for square root. Show us what you've tried and we can help you from there.
I have now and it has gotten rid of the error message...But why, what's the point of that being there? If you're going to say do my own research fair enough, I will eventually learn why ;)
- Nicky
I'll start off by showing my full code:
Main class
import javax.swing.JFrame;
public class groupingTest {
public static void main (String[] args) {
groupWindow test = new groupWindow();
Better question then: why does Java bother with importing and not integrate it in already?
- Nicky
I see you can import in 2 ways:
import java.util.*;
or
import java.util.Scanner/Random/etc;
if I used the first one it imports all the librarys within that (directory?). If so would that...
Uh...Fair enough. How would I make it a .EXE
- Nicky
Alright, I could search the internet but I want a more specific answer.
I used a BASIC programming language before this called Basic4GL so my knowledge to be fair isn't very wide outside of that...
Thanks for the suggestions, I will keep them in mind.
while (Number > RandomNumber || Number < RandomNumber)
If the number isn't higher or lower then it must be equals that's when it...
Is there actually a specific thread to post your games? This is my first guess, and I'm not here to show off or I'll be fooling myself here as it's not the best game. I'm actually just asking for any...
Yes you're right, I did know that. I will be careful in the future on the forums to save confusion! Thank you.
- Nicky
Ha, I guess I didn't see that. I'll refrain from making useless post before looking more next time, sorry. :o
- Nicky
Thank you very much for that.
- Nicky
EDIT:
awkward moment when you find out you can do math.abs(n) :))
Can anyone help solve my problem? Don't know where I've gone wrong.
Main
// Main
public class Nicky {
public static void main(String[] args)
{
func f = new func("Did it work? Hehehe",...
I've been programming for years in a basic programming language, so doing something a bit more advance like this is quite challenging but I love it. Could someone help me where I've gone wrong here?...