Search:

Type: Posts; User: cutee_eyeh

Search: Search took 0.23 seconds.

  1. Thread: SUBSTRING

    by cutee_eyeh
    Replies
    1
    Views
    722

    SUBSTRING

    import javax.swing.*;

    public class Substring{
    public static void main (String a[]){

    String m = JOptionPane.showInputDialog("Enter a String:");
    String sub =...
  2. Replies
    6
    Views
    9,485

    Re: asterisk forming diamond

    ..in diamond formation..
  3. Replies
    6
    Views
    9,485

    Re: asterisk forming diamond

    ..the output should look like this
    *
    * *
    * * *
    * *
    *
    ..but then the output of this program is

    *
    ...
  4. Replies
    3
    Views
    3,273

    Re: composite and prime

    ..this is a correct code but then the numbers that should be in prime the output would be in composite for example we input 1 the output would be the 1 is composed of 1..thank you..
  5. Replies
    6
    Views
    9,485

    asterisk forming diamond

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

    int n,i,j,k;
    do {

    n = (int)(3);

    }while(n % 2 ==...
  6. Replies
    3
    Views
    3,273

    composite and prime

    import java.util.Scanner;

    public class erelle{
    private static String comps;
    public static void main(String[] args){
    Scanner input = new Scanner(System.in);
    ...
Results 1 to 6 of 6