Search:

Type: Posts; User: berk

Search: Search took 0.28 seconds.

  1. Thread: whats wrong?

    by berk
    Replies
    6
    Views
    775

    Re: whats wrong?

    is that a rule for java?
  2. Thread: whats wrong?

    by berk
    Replies
    6
    Views
    775

    Re: whats wrong?

    what do you mean by missing? I put my return statement into an else statement
  3. Thread: whats wrong?

    by berk
    Replies
    6
    Views
    775

    Re: whats wrong?

    when i put
    return true after the for loop
    my program works
    for (int i = 2; i <= n / 2; i++)
    {
    if (n % i == 0)
    {
    return false;
    }
  4. Thread: whats wrong?

    by berk
    Replies
    6
    Views
    775

    whats wrong?

    public class Programme {

    there is no error for this code:

    public static void main(String[] args) {

    int count = 0;

    for (int i = 10; i < 50; i++) {
    if (isprime(i)) {
  5. Thread: Can you help?

    by berk
    Replies
    1
    Views
    719

    Can you help?

    I have a question and I almost completed this. However, have a simple problem which I can't solve.

    Design and implement a program that uses for loops to print the following rectangular pattern...
  6. Thread: Can you help?

    by berk
    Replies
    7
    Views
    875

    Re: Can you help?

    I have a better idea

    import java.util.Scanner;

    public class FirstProgramme
    {
    public static void main(String[] args)
    {

    System.out.print("Please enter a number: ");
  7. Thread: Can you help?

    by berk
    Replies
    7
    Views
    875

    Re: Can you help?

    Hello,
    thanks for your comment
    this is my new code
    int a;
    a=1;
    System.out.println("Please enter a number: ");
    Scanner in=new Scanner(System.in);
    int n=in.nextInt();
    while ( a<n)
    ...
  8. Thread: Can you help?

    by berk
    Replies
    7
    Views
    875

    Can you help?

    first read a positive integer value, n, from the user
    Write a while loop to output the integer values from 0 up to n exclusive. The output should have five values per line, with values separated...
  9. Thread: Can you help me?

    by berk
    Replies
    3
    Views
    829

    Re: Can you help me?

    I think I've solved the question by doing that

    import java.util.Scanner;



    public class İlkProgram
    {
  10. Thread: Can you help me?

    by berk
    Replies
    3
    Views
    829

    Can you help me?

    Hello I'm a new java student and I have an assignment which is

    Design and implement a program that computes the maximum number of flowers that can be planted in a triangular-shaped garden having...
  11. Thread: Java and HTML

    by berk
    Replies
    1
    Views
    665

    Java and HTML

    Hello I have a java question but I don't know how to combine it with html and how to create an web browser with my java code

    Try to solve the following problem. Note: Don't let the html code...
  12. Replies
    1
    Views
    1,042

    Whats wrong with my code

    Hello I'm a new java student and I have an assignment which is

    Design and implement a program that computes the maximum number of flowers that can be planted in a triangular-shaped garden having...
Results 1 to 12 of 12