Hi. Now I'm programming in eclipse. I have on window with two button - start/stop recording and list.
I need to create a second window, where is a list of records, and I need a third window, which...
Type: Posts; User: Lukas
Hi. Now I'm programming in eclipse. I have on window with two button - start/stop recording and list.
I need to create a second window, where is a list of records, and I need a third window, which...
What's difference? I need that the program composition those numbers...
Hello. I want to ask. How to composition the number where they is in cycle.
For example:
for(int i = 0; i < 5; i++){
And there cycle print me all number those is between 5 and 0.
How can I...
I correct my program. No everything okey.
public void Authors(){
scan = new Scanner(System.in);
System.out.println("Please write the author: ");
authors = scan.nextLine();
System.out.println("Please write how much author...
I want that the program print me all books where I inserted.
Then why this is bad?
anArray[0] = books;
Then how can I use the same "x" on my program?
anArray[0] = 1;
anArray[1] = 2;
anArray[2] = 3;
public void Authors(){
scan = new Scanner(System.in);
System.out.println("Please write the author: ");
authors = scan.nextLine();
System.out.println("Please write how much author...
Can you give me the example?
public void Authors(){
scan = new Scanner(System.in);
System.out.println("Please write the author: ");
authors = scan.nextLine();
System.out.println("Please write how much author...
for(int i = 0; i < authors03; i++){
System.out.println("Please write author books: " + authors);
setBooks(scan.next());
anArray = new String[1];
}
}
public void result(){
anArray[0]...
public class Authors2 {
int authors03;
String authors;
int books2;
Scanner scan;
int[] anArray;
private String books22;
public void Authors(){
scan = new Scanner(System.in);
I want that the program print me:
You have entered these author books: Test1, Test2
or:
You have entered these author books: Test1
You have entered these author books: Test2
Please write the author:
Lukas
Please write how much author books you want to write: Lukas
2
Please write author books: Lukas
Test1
Please write author books: Lukas
Test2
You have writed the...
He has main() method.
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
Authors2 book = new Authors2 ();
book.Kiak();
import java.util.Scanner;
public class Authors2 {
int authors03;
String authors;
String books2;
Scanner scan;
public void Authors(){
scan = new Scanner(System.in);
My post: http://www.javaprogrammingforums.com/whats-wrong-my-code/33348-whats-wrong.html
When I starting program everything is okey, but when I inserting the books the program showed me the last...
Okey I change. Thanks.
--- Update ---
And can you help me in my post?:
http://www.javaprogrammingforums.com/whats-wrong-my-code/33348-whats-wrong.html
And how can I correct it?
My program:
package Dice;
import java.util.Random;
import java.util.Scanner;
public class Dice {
static int game;
In my program I have this:
public void Turnnumber(){
scan2 = new Scanner(System.in);
System.out.println("Enter the desired number of turns");
game = scan2.nextInt();
scan2.nextLine();
er =...
How can I insert that code in my program?
Yes. I have a question... In my first post...
public static void main(String[] args) {
int min = 0;
int max = 3;
for(int i1 = 0; i1 < max; i1++){
setI2((int) (Math.random() * (max+min)));
System.out.println(i2);
}
}