edited..
Type: Posts; User: smartshahezad
edited..
Hello guys.. I don't know if this is the right place to be asking this question, but i need to know what's wrong with my HQL Update statement.. I am using Eclipse IDE with jboss server and below is...
List<String> list1 = new ArrayList <String> ();
list1.add("One");
list1.add("Two");
Scanner input = new Scanner(System.in);
System.out.print("Input the index value of the object...
the java -version command in cmd say i have 1.8.0_05-b13
--- Update ---
and no i am not using the javac command.. my IDE is doing it for me..
--- Update ---
for the second statement :
The method printf(Locale, String, Object[]) in the type PrintStream is not applicable for the arguments (String, String, String)
and for the class Comparison, it...
Hello guys, i have been trying to play around with System.out.printf , but it says that the method is not applicable to the attributes.. i don't think i am doing anything wrong but i can't understand...
THIS IS BRILLIANT.. thank you soooooooooooo much... now its working.. i am planning to add couple other things i learn in this program and keep updating this game i guess.. and yes i dont have the...
sorry but can you give me an example please?? thank
can you please tell me what's wrong with this ???
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello! Welcome to Dice Hi-Lo");
i know i have to write a while loop.. but i dont know how to write it in my scenario.. i can write a basic while loop that prints maybe 10 numbers.. but i dont know how to implement it in my case.....
this is what i want this program to do.. but repetitively.. i have managed to do it without it being repeated :P
package com.peg.trn;
import java.util.Scanner;
public class HiLo {
if i add more outputs in the winAmount() method, will it return more than one values ???
So i managed to figure out the methods in my class.. Now, i want to write the main method.. And i have no clue how and what to write there..
Below is my code :
package com.peg.hilodice;...
Hello guys..
I want to write a small Hi Lo Betting Dice program that satisfies these conditions :
A player places a bet on whether the sum of two dice will come up High (totalling 8 or...