Here is my code:
import java.util.Arrays;
import javax.swing.*;
public class childNameAge {
public static void main(String[] args) {
int numberOfChildren;
Type: Posts; User: alpvii
Here is my code:
import java.util.Arrays;
import javax.swing.*;
public class childNameAge {
public static void main(String[] args) {
int numberOfChildren;
Here are some more of the code. I thought that was the problem, that the last number is the number that is going to display. So I think, that I have to store all seven numbers in a string? or char?...
I want my program to show seven random numbers, but it does only display one. I got this in a class:
if (command.equals("Random numbers")) {
int tal = modell.getTal();...
I do not really know what I should put in the model-class. Here is an example of an program's model-class:
public class Model {
private String text;
public String getRad(){
text="Nu var det...
I have now done some seperating and this is the result:
The View class:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
I want this code to be in the MVC-model. MVC stands for Model-View-Control. You should have the graphics for the program in the view-class, and the code for doing operations in the control-class. The...
I want to have my program in three classes according to the MCV-model. The problem is that I cannot manage to do it right, cause it won't start and other things. This is the code when it is NOT in...
How do I create the buttons with an array? I am going to do a Tic-Tac-Toe game in SWT. I guess this way is wrong?:
import org.eclipse.swt.layout.*;
import org.eclipse.swt.widgets.*;
import...