標題:
printf() 函式 (二)
[打印本頁]
作者:
tonyh
時間:
2020-11-13 20:16
標題:
printf() 函式 (二)
printf()函式輸出練習:
%d 整數
%s 字串
%S 轉換為大寫字母的字串
public class Ch65
{
public static void main(String[] args)
{
String str1="dog", str2="cat";
int a=3, b=5;
System.out.printf("There are %d %ss and %d %Ss.",a,str1,b,str2);
}
}
複製代碼
作者:
林政瑜
時間:
2020-11-13 20:22
public class Ch01
{
public static void main(String[] args)
{
String str1="dog", str2="cat";
int a=3, b=5;
System.out.printf("There are %d %ss and %d %Ss.",a,str1,b,str2);
}
}
複製代碼
作者:
黃宥華
時間:
2020-11-13 20:22
public class Ch999 {
public static void main(String[] args) {
String str1="dog";
String str2="cat";
int a=3,b=5;
System.out.printf("There are %d %ss and %d %Ss.",a,str1,b,str2);
}
}
複製代碼
作者:
陳宥穎
時間:
2020-11-13 20:22
public class Ch01 {
public static void main(String[] args) {
String str1="dog", str2="cat";
int a=3, b=5;
System.out.printf("There are %d %ss and %d %Ss.",a,str1,b,str2);
}
}
複製代碼
作者:
孫嘉駿
時間:
2020-11-13 20:23
public class Ch01 {
public static void main(String[] args) {
String str1="dog", str2="cat";
int a=3,b=5;
System.out.printf("There are %d %ss and %d %Ss.",a, str1, b, str2);
}
}
複製代碼
作者:
董宸佑
時間:
2020-11-13 20:23
public class Ch01 {
public static void main(String[] args) {
String str1="dog", str2="cat";
int a=3, b=5;
System.out.printf("There are %d %ss and %d %Ss.",a,str1,b,str2);
}
}
複製代碼
作者:
劉愷鈞
時間:
2020-11-13 20:24
public class Ch01 {
public static void main(String[] args) {
String str1="dog",str2="cat";
int a=3,b=5;
System.out.printf("There are %d %ss and %d %Ss.",a,str1,b,str2);
}
}
複製代碼
作者:
沈子晏
時間:
2020-11-13 20:24
public class Ch01 {
public static void main(String[] args) {
String str1="dog", str2="cat";
int a=3, b=5;
System.out.printf("There are %d %ss and %d %Ss .",a,str1,b,str2);
}
}
複製代碼
作者:
黃柏叡
時間:
2020-11-13 20:25
public class Ch01 {
public static void main(String[] args) {
String str1="dog",str2="cat";
int a=3,b=5;
System.out.printf("There are %d %ss and %d %Ss.",a,str1,b,str2);
}
}
複製代碼
作者:
夏子涵
時間:
2020-11-13 20:25
public class Ch01
{
public static void main(String[] args)
{
String str1="dog", str2="cat";
int a=3, b=5;
System.out.printf("There are %d %ss and %d %Ss.",a,str1,b,str2);
}
}
複製代碼
作者:
蔡忻霓
時間:
2020-11-13 20:32
public class Ch65
{
public static void main(String[] args)
{
String str1="dog", str2="cat";
int a=3, b=5;
System.out.printf("There are %d %ss and %d %Ss.",a,str1,b,str2);
}
}
複製代碼
歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://istak.org.tw/seed/)
Powered by Discuz! 7.2