Click here to Skip to main content
15,889,335 members
Home / Discussions / Java
   

Java

 
AnswerRe: ecc diffie hellman Pin
Richard MacCutchan12-Mar-15 23:53
mveRichard MacCutchan12-Mar-15 23:53 
GeneralRe: ecc diffie hellman Pin
harold aptroot14-Mar-15 2:21
harold aptroot14-Mar-15 2:21 
QuestionSubstitution Cipher Cryptanalysis Pin
nicolas El Khoury410-Mar-15 12:06
nicolas El Khoury410-Mar-15 12:06 
SuggestionRe: Substitution Cipher Cryptanalysis Pin
Richard MacCutchan10-Mar-15 21:50
mveRichard MacCutchan10-Mar-15 21:50 
QuestionThread Creation Pin
Sarita S9-Mar-15 23:21
Sarita S9-Mar-15 23:21 
AnswerRe: Thread Creation Pin
Richard MacCutchan10-Mar-15 21:51
mveRichard MacCutchan10-Mar-15 21:51 
AnswerRe: Thread Creation Pin
Eli Zaslavchik13-Apr-15 3:11
Eli Zaslavchik13-Apr-15 3:11 
QuestionMethod Calling Pin
William O'Neil9-Mar-15 7:05
William O'Neil9-Mar-15 7:05 
Hi everyone. I'm new to this and could use a bit of help. Is it possible to call the "timesTable" method from inside the "main" as its coded so far? I've tried a few things inside the main like timesTable t = new timesTable, and even adding a class name and using "class".timesTable, and so on, but nothing has worked. The code I have so far is:

package timestableapp;

/**
*
* @author
*/
import java.util.Scanner;

public class TimesTableApp {

/**
* @param args the command line arguments
*/

static void timesTable(int x)
{
System.out.println("Multiplication Table of "+ 4);
for(x=0; x<=12; x++)
{
System.out.println(x+" * "+4+" = "+(4*x));
}
}

public static void main(String args[])
{
int n, c;

System.out.println("Enter an integer to print it's multiplication table");
Scanner in = new Scanner(System.in);
n = in.nextInt();

System.out.println("Multiplication table of "+n+" is :-");
for ( c = 0 ; c <= 12 ; c++ )
System.out.println(n+"*"+c+" = "+(n*c));

}
}
AnswerRe: Method Calling Pin
Richard MacCutchan9-Mar-15 7:56
mveRichard MacCutchan9-Mar-15 7:56 
GeneralRe: Method Calling Pin
William O'Neil9-Mar-15 8:35
William O'Neil9-Mar-15 8:35 
GeneralRe: Method Calling Pin
Richard MacCutchan9-Mar-15 8:40
mveRichard MacCutchan9-Mar-15 8:40 
QuestionNeed Help Adding Image onto Applet Pin
VietAnh1627-Mar-15 10:09
VietAnh1627-Mar-15 10:09 
AnswerRe: Need Help Adding Image onto Applet Pin
Richard MacCutchan7-Mar-15 22:17
mveRichard MacCutchan7-Mar-15 22:17 
AnswerRe: Need Help Adding Image onto Applet Pin
PeraDll14-Mar-15 9:42
PeraDll14-Mar-15 9:42 
Question7 Pin
VietAnh1626-Mar-15 15:44
VietAnh1626-Mar-15 15:44 
AnswerRe: Need Help Adding Image onto Applet Pin
Richard MacCutchan6-Mar-15 21:43
mveRichard MacCutchan6-Mar-15 21:43 
QuestionMAC theme used at java interface in Windows Pin
Member 115037696-Mar-15 3:10
Member 115037696-Mar-15 3:10 
AnswerRe: MAC theme used at java interface in Windows Pin
Richard MacCutchan6-Mar-15 6:35
mveRichard MacCutchan6-Mar-15 6:35 
QuestionSoftware Architekture With Design Pattern Pin
Member 114986694-Mar-15 7:03
Member 114986694-Mar-15 7:03 
AnswerRe: Software Architekture With Design Pattern Pin
jschell4-Mar-15 9:06
jschell4-Mar-15 9:06 
Questionabout java program for vfdt algorithm in data stream Pin
Member 114432123-Mar-15 22:28
Member 114432123-Mar-15 22:28 
AnswerRe: about java program for vfdt algorithm in data stream Pin
Richard MacCutchan3-Mar-15 22:58
mveRichard MacCutchan3-Mar-15 22:58 
Questionis there a better way to remove the last digit of a number and see if the remainder of the remaining digits is the same as the removed digit. [Solved] Pin
Khuthadzo Tshikotshi3-Mar-15 20:27
professionalKhuthadzo Tshikotshi3-Mar-15 20:27 
AnswerRe: is there a better way to remove the last digit of a number and see if the remainder of the remaining digits is the same as the removed digit. Pin
Richard MacCutchan3-Mar-15 23:04
mveRichard MacCutchan3-Mar-15 23:04 
GeneralRe: is there a better way to remove the last digit of a number and see if the remainder of the remaining digits is the same as the removed digit. Pin
Khuthadzo Tshikotshi4-Mar-15 19:40
professionalKhuthadzo Tshikotshi4-Mar-15 19:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.