#I am Creating a to-do list and i am a begginer and wanted some help doing things.
45 messages Β· Page 1 of 1 (latest)
β This post has been reserved for your question.
Hey @frigid orbit! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Instrructions must not be between quotes " and "
That's for text, not things you want the ccomputer to run. Typically text you want displayed
You have no intention to have the computer display words that read input.next();
Rather you want to instruct the computer input.next(), that is, that it reads the next user input
So, no quotes around it
input.next();
you've put quotes around it
Ah yes, the nextLine() problem. I hadn't seen it
Well it's a bit embarrassing, but you really shouldn't use both nextLine() and other next()-like methods on the same Scanner. It will be hard to handle
It would be easier to choose: either you use nothing but nextLine(), or you never use nextLine() at all
Personally I think as user inputs only exists in the form of lines, it would be better to use nextLine() only
yeah, replace with like
int catChoice = Integer.parseInt(input.nextLine());
input.nextLine() reads the next full line of user input. Everything they typed from start to press of <enter>
Integer.parseInt() converts the text obtained into an int
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
Yeah yeah, the bot reacts to words of gratitude. We get used to it
I imagine IntelliJ could be slow too, but it would run on your computer, so it would entirely depend on your computer's power
In theory if you need lightweight, you could use the actual JDK in command line, and some text editor
I use IntelliJ
yes, and it will need the JDK too but offer to dowload it for you
Java Development Kit, the big piece of software that allows to program in Java, minus the GUI part.
It's needed to make Java programs on your own computer
IntelliJ can download it for you
Only if you want the paid edition. You can take the free edition
no idea what to do about your code
π€ Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
π€ Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
@frigid orbit letβs work together
π€ Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
Making GUIs is too complicated for beginners. A week is not achieveable
There is not much question of "which compiler to use" as the compiler comes with the JDK. It would be standard to take openJDK 17 from Adoptium
But a better question would be which tool to use to program in Java, and for that an IDE like IntelliJ would work better
what makes you think you need a GUI from this prompt?
I mean, sounds like your taking an intro to java, which ive never seen anyone require anything except for console apps for an intro class.
π€ Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
Put it in src not out
π€ Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
import javax.swing.;
import java.awt.;
class Samman {
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
JFrame frame = new JFrame("ToDo List");
JPanel panel = new JPanel();
JLabel label = new JLabel("Hello, Welcome to the To Do List");
JLabel lbl = new JLabel("Do you want to Make a new Todo list, edit one, or delete one?");
JTextField textField = new JTextField(25);
panel.setLayout(new BorderLayout());
panel.add(label, BorderLayout.NORTH);
panel.add(lbl);
panel.add(textField, BorderLayout.SOUTH);
frame.add(panel);
frame.setSize(800,600);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
});
}
} ```
This message has been formatted automatically. You can disable this using /preferences.