Обсуждения
Best way to access vector element
 0 голосов
 2 ответовSuggestion
 0 голосов
 1 ответWhat is the output and why? 
public static int[] make (int n){
int[]a=new int [n];
a [i]=i+1;
}
return a;
}
public static void dub (int []jub){
for (intent i=0;i <jub.length;i++){
jub*=2;
}
}
public static int mus (int []zoo){
int jus=0;
for (int i=0;i <zoo.length;i++){
jus+=zoo [i];
}
return jus;
}
public static void main  (String [] args){
int [] bob =make(5);
dub (bob);
System.out.println (mus (bob));
}
 0 голосов
 2 ответовwhy is it not running? 
import java.util.Scanner;
public class Myclass{
       public static void main(String [] args){
Scanner in = new Scanner(System.in);
      String a;
      int b;
      System.out.println("enter a word");
             a = in.nextLine();
      System.out.println("enter repetition")
             b = in.nextInt();
         for ( int = 0; x < b; x = x++)
      System.out.println(a);
}
}
 0 голосов
 8 ответовАктуальное сегодня
Beginner question
 0 Votes
I need help to solve this
 0 Votes
Remove
 0 Votes
Project
 0 Votes
Engineer Cloud
 0 Votes
Lua?
 1 Votes